Documentation ¶
Index ¶
- func DecodeMapToStruct(input interface{}, output interface{}) error
- func DecodeStructToMap(input interface{}) map[string]interface{}
- func DecodeStructToMapList(input interface{}) []map[string]interface{}
- func GetFilterFromQueryArgCtx(ctx web.Context) (*filter.Filter, error)
- func ParseJsonTag(tag string) (string, jsonTagOptions)
- func ToSnakeCase(str string) string
- func ToTimeHookFunc() mapstructure.DecodeHookFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeMapToStruct ¶
func DecodeMapToStruct(input interface{}, output interface{}) error
DecodeMapToStruct - Decode a map to struct.
func DecodeStructToMap ¶
func DecodeStructToMap(input interface{}) map[string]interface{}
func DecodeStructToMapList ¶
func DecodeStructToMapList(input interface{}) []map[string]interface{}
func ParseJsonTag ¶
parseTag splits a struct field's json tag into its name and comma-separated options.
func ToSnakeCase ¶
func ToTimeHookFunc ¶
func ToTimeHookFunc() mapstructure.DecodeHookFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.