Documentation
¶
Index ¶
- Constants
- func Values(s interface{}) (url.Values, error)
- type Encoder
- type Option
- func Filter(filter string) Option
- func FuzzyCount(fuzzycount bool) Option
- func Limit(limit int) Option
- func Offset(offset int) Option
- func Paging(offset, limit int) Option
- func SetCustomParams(key, value string) Option
- func SetStructParams(p interface{}) Option
- func Sort(key, dir string) Option
- func SortAsc(key string) Option
- func SortDesc(key string) Option
Constants ¶
View Source
const ( ASC = "ASC" // ASC defines ascending sort direction. DESC = "DESC" // DESC defines descending sort direction. )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Encoder ¶
Encoder is an interface implemented by any type that wishes to encode itself into URL values in a non-standard way.
type Option ¶
Option function type setting url values.
func FuzzyCount ¶
FuzzyCount sets the fuzzy count for url values.
func SetCustomParams ¶
SetCustomParams set custom key-value parameter pairs freely.
func SetStructParams ¶
func SetStructParams(p interface{}) Option
SetStructParams convert struct to URL values and return Option from those values.
Click to show internal directories.
Click to hide internal directories.