util

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindStructTagsValueAsEnv

func BindStructTagsValueAsEnv(v *viper.Viper, configObject interface{}, tagName string) error

func IndirectType

func IndirectType(val interface{}) (reflect.Type, error)

func IsNil

func IsNil(val interface{}) (result bool)

IsNil function check value is nil or no. To check real value of interface is nil or not, should using reflection, check this https://play.golang.org/p/Isoo0CcAvr. Firstly check `val==nil` because reflection can not get value of zero val.

func StructTags

func StructTags(val interface{}) ([]reflect.StructTag, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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