Documentation ¶
Index ¶
- func HasStringInSlice(a string, list []string) bool
- func IsBoolPtr(val *bool) bool
- func PersistExistingParams(values []string, key, ignoreValue string, q url.Values)
- func Pluralise(req *http.Request, key, lang, keyPrefix string, plural int) string
- func ToBoolPtr(val bool) *bool
- func TrimCategoryValue(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasStringInSlice ¶
HasStringInSlice checks for a string within in a string array
func PersistExistingParams ¶
PersistExistingParams persists existing query string values and ignores a given value
func Pluralise ¶ added in v1.7.0
Pluralise performs a toml file lookup to return the pluralised lookup value from a given key. This function is intended not to panic if the toml file lookup fails. req is the *http.Request, required for logging. key is the key to lookup in the toml file. lang is the language. keyPrefix is an optional prefix to the key string. plural is the plural int required for toml file lookup.
func TrimCategoryValue ¶ added in v1.19.1
TrimCategoryValue trims _[0-9] from the given string and returns the result
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.