commonhelper

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrToMapByKey

func ArrToMapByKey(keyValue string, arrData ...interface{}) map[string]interface{}

ArrToMapByKey ...

func ConvertToInterfaceArr

func ConvertToInterfaceArr(data interface{}) []interface{}

ConvertToInterfaceArr ...

func DefaultResponse

func DefaultResponse(code int, err error, info interface{}) map[string]interface{}

DefaultResponse ...

func FillArrBson

func FillArrBson(inStructArr, outStructArr interface{})

FillArrBson ...

func FillStructBson

func FillStructBson(in interface{}, out interface{})

FillStructBson ...

func ToMap

func ToMap(in interface{}, tag string) (map[string]interface{}, error)

ToMap usa los tags en los campos del struct para decidir cuales campos se agregan al map retornado.

Types

This section is empty.

Jump to

Keyboard shortcuts

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