Documentation ¶
Index ¶
- func DecodeBool(u url.URL, name string) (bool, error)
- func DecodeBoolDefault(u url.URL, name string, defaultVal bool) bool
- func DecodeInt(u url.URL, name string) (int, error)
- func DecodeIntDefault(u url.URL, name string, defaultVal int) int
- func DecodeStringDefault(u url.URL, name string, defaultVal string) string
- func EncodeBool(q *url.Values, name string, value bool)
- func EncodeInt(q *url.Values, name string, value int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBool ¶
Decodes a boolean value from the url's query params. Will return an error if the value is not set
func DecodeBoolDefault ¶
Decodes a boolean value from the url's query params. Will return the default value if the value is not set
func DecodeInt ¶
Decodes an integer value from the url's query params. Will return an error if the value is not set
func DecodeIntDefault ¶
Decodes an integer value from the url's query params. Will return the default value if the value is not set
func DecodeStringDefault ¶
Gets a string value from the url's query params. Will return the default value if the value is not set
func EncodeBool ¶
Adds a boolean value to the give url values
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.