Documentation
¶
Index ¶
- func GetQueryParamListValues(queryVars url.Values, varKey string, maxNumItems int) (items []string, err error)
- func Slice(full []models.Dimension, offset, limit int) (sliced []models.Dimension)
- func SliceStr(full []*string, offset, limit int) (sliced []*string)
- func ValidatePositiveInt(parameter string) (val int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetQueryParamListValues ¶
func GetQueryParamListValues(queryVars url.Values, varKey string, maxNumItems int) (items []string, err error)
GetQueryParamListValues obtains a list of strings from the provided queryVars, by parsing all values with key 'varKey' and splitting the values by commas, if they contain commas. Up to maxNumItems values are allowed in total.
func SliceStr ¶ added in v1.30.0
SliceStr is a utility function to cut a slice of *strings according to the provided offset and limit.
func ValidatePositiveInt ¶
ValidatePositiveInt obtains the positive int value of query var defined by the provided varKey
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.