Documentation ¶
Index ¶
- Constants
- func Capitalize(s string) string
- func Chan(c <-chan map[string]interface{}, ...) chan map[string]interface{}
- func EncodeToMap(obj interface{}) (map[string]interface{}, error)
- func IsEmpty(v interface{}) bool
- func LowerTitle(input string) string
- func Singular(value interface{}) interface{}
- func ToBool(value interface{}) bool
- func ToFullReference(path, typeName string) string
- func ToInterfaceSlice(obj interface{}) []interface{}
- func ToMapInterface(obj interface{}) map[string]interface{}
- func ToMapSlice(obj interface{}) []map[string]interface{}
- func ToNumber(value interface{}) (int64, error)
- func ToObj(data interface{}, into interface{}) error
- func ToReference(typeName string) string
- func ToString(value interface{}) string
- func ToStringSlice(data interface{}) []string
- func ToTimestamp(value interface{}) (int64, error)
- func ToValuesSlice(value string) []string
- func Transform(data map[string]interface{}, path []string, transformer TransformerFunc)
- func Uncapitalize(s string) string
- type TransformerFunc
Constants ¶
View Source
const ( ArrayKey = "{ARRAY}" MapKey = "{MAP}" )
Variables ¶
This section is empty.
Functions ¶
func Capitalize ¶
func EncodeToMap ¶
func LowerTitle ¶
func ToFullReference ¶
func ToInterfaceSlice ¶
func ToInterfaceSlice(obj interface{}) []interface{}
func ToMapInterface ¶
func ToMapInterface(obj interface{}) map[string]interface{}
func ToMapSlice ¶
func ToMapSlice(obj interface{}) []map[string]interface{}
func ToReference ¶
func ToStringSlice ¶
func ToStringSlice(data interface{}) []string
func ToTimestamp ¶
func ToValuesSlice ¶
func Transform ¶
func Transform(data map[string]interface{}, path []string, transformer TransformerFunc)
func Uncapitalize ¶
Types ¶
type TransformerFunc ¶
type TransformerFunc func(input interface{}) interface{}
Click to show internal directories.
Click to hide internal directories.