mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-01 16:30:02 -05:00
19 lines
378 B
Go
19 lines
378 B
Go
package godata
|
|
|
|
import (
|
|
"context"
|
|
"strconv"
|
|
)
|
|
|
|
func ParseTopString(ctx context.Context, top string) (*GoDataTopQuery, error) {
|
|
i, err := strconv.Atoi(top)
|
|
result := GoDataTopQuery(i)
|
|
return &result, err
|
|
}
|
|
|
|
func ParseSkipString(ctx context.Context, skip string) (*GoDataSkipQuery, error) {
|
|
i, err := strconv.Atoi(skip)
|
|
result := GoDataSkipQuery(i)
|
|
return &result, err
|
|
}
|