utils

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 GetFilterFromQueryArgCtx

func GetFilterFromQueryArgCtx(ctx web.Context) (*filter.Filter, error)

func ParseJsonTag

func ParseJsonTag(tag string) (string, jsonTagOptions)

parseTag splits a struct field's json tag into its name and comma-separated options.

func ToSnakeCase

func ToSnakeCase(str string) string

func ToTimeHookFunc

func ToTimeHookFunc() mapstructure.DecodeHookFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL