utility

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeStruct added in v0.1.1

func MakeStruct(m map[string]interface{}, ty reflect.Type) interface{}

func MapKeys

func MapKeys(m map[string]interface{}) []string

func NilErrors added in v0.1.20

func NilErrors(v [][]error) error

func ParseAny added in v0.1.1

func ParseAny(byt sql.RawBytes) any

func ParseAnyStr added in v0.1.23

func ParseAnyStr(str string) any

func ToMap

func ToMap(s interface{}) (map[string]interface{}, reflect.Type, string, error)

Convert struct to map

func ToStruct added in v0.1.2

func ToStruct(m map[string]interface{}, i interface{}) error

func ToStructArray added in v0.1.2

func ToStructArray(m []map[string]interface{}, i interface{}) error

func TypeEquals

func TypeEquals(data any, compare any) bool

func Validate

func Validate(s interface{}) error

Validate request data

Types

This section is empty.

Jump to

Keyboard shortcuts

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