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 Delete(key string, m map[string]interface{})
- 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 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 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)
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 SortedKeyLengths ¶
SortedKeyLengths returns the list of keys natural sorted and from longest to shortest
func SortedKeys ¶
func SortedKeysByLastKeyword ¶
func SortedKeysByLastName ¶
func TransformMapAnyToString ¶
func ValuesSortedByKeys ¶
func ValuesSortedByKeys[V interface{}](data map[string]V) (values []V)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.