Documentation ¶
Index ¶
- func AnyKeys[V interface{}](data map[interface{}]V) (keys []interface{})
- func CamelizeKeys[V interface{}](data map[string]V) (camelized map[string]V)
- func DebugWalk(thing map[string]interface{}) (results string)
- func ExtractBoolValue(v interface{}) (b bool)
- func ExtractEnumValue(key string, upper bool, enums []string, data map[string]interface{}) (value string, err error)
- func ExtractIntValue(key string, data map[string]interface{}) (value int, err error)
- func FinalizeNjnFieldAttributes(attrs map[string]interface{}) (attributes []template.HTMLAttr, err error)
- func FinalizeNjnFieldData(data map[string]interface{}, field map[string]interface{}, skip ...string) (err error)
- func Get(key string, m map[string]interface{}) (value interface{})
- func IsMap(v interface{}) (ok bool)
- func KebabKeys[V interface{}](data map[string]V) (kebabed map[string]V)
- func Keys[V interface{}](data map[string]V) (keys []string)
- func ParseKeyIntValue(key string, data map[string]interface{}) (v int, ok bool)
- func ParseNjnFieldAttributes(field map[string]interface{}) (attributes map[string]interface{}, classes []string, styles map[string]string, ...)
- func ReverseSortedKeys[V interface{}](data map[string]V) (keys []string)
- func ReverseSortedNumbers[K Number, V interface{}](data map[K]V) (keys []K)
- func SortedKeyLengths[V interface{}](data map[string]V) (keys []string)
- func SortedKeys[V interface{}](data map[string]V) (keys []string)
- func SortedKeysByLastKeyword[V interface{}](data map[string]V) (keys []string)
- func SortedKeysByLastName[V interface{}](data map[string]V) (keys []string)
- func SortedNumbers[K Number, V interface{}](data map[K]V) (keys []K)
- func TransformAnyToStringSlice(input interface{}) (output []string, ok bool)
- func TransformMapAnyToString(input map[string]interface{}) (output map[string]string)
- func ValuesSortedByKeys[V interface{}](data map[string]V) (values []V)
- type Number
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelizeKeys ¶
func ExtractBoolValue ¶
func ExtractBoolValue(v interface{}) (b bool)
func ExtractEnumValue ¶
func ExtractIntValue ¶
func FinalizeNjnFieldData ¶
func ParseKeyIntValue ¶
func ParseNjnFieldAttributes ¶
func ReverseSortedKeys ¶
func ReverseSortedNumbers ¶
func ReverseSortedNumbers[K Number, V interface{}](data map[K]V) (keys []K)
func SortedKeyLengths ¶
SortedKeyLengths returns the list of keys natural sorted and from longest to shortest
func SortedKeys ¶
func SortedKeysByLastKeyword ¶
func SortedKeysByLastName ¶
func SortedNumbers ¶
func SortedNumbers[K Number, V interface{}](data map[K]V) (keys []K)
func TransformMapAnyToString ¶
func ValuesSortedByKeys ¶
func ValuesSortedByKeys[V interface{}](data map[string]V) (values []V)
Types ¶
Click to show internal directories.
Click to hide internal directories.