mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-03 03:28:03 -05:00
18 lines
266 B
Go
18 lines
266 B
Go
package godata
|
|
|
|
import (
|
|
"context"
|
|
"strconv"
|
|
)
|
|
|
|
func ParseCountString(ctx context.Context, count string) (*GoDataCountQuery, error) {
|
|
i, err := strconv.ParseBool(count)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
result := GoDataCountQuery(i)
|
|
|
|
return &result, nil
|
|
}
|