Documentation ¶
Index ¶
- Variables
- func Bool(i interface{}) bool
- func Byte(i interface{}) byte
- func Bytes(i interface{}) []byte
- func Convert(any interface{}, t string, params ...interface{}) interface{}
- func Duration(any interface{}) time.Duration
- func Float32(i interface{}) float32
- func Float64(i interface{}) float64
- func Int(i interface{}) int
- func Int16(i interface{}) int16
- func Int32(i interface{}) int32
- func Int64(i interface{}) int64
- func Int8(i interface{}) int8
- func Interfaces(i interface{}) []interface{}
- func Map(value interface{}, tags ...string) map[string]interface{}
- func MapDeep(value interface{}, tags ...string) map[string]interface{}
- func MapStrStr(value interface{}, tags ...string) map[string]string
- func MapStrStrDeep(value interface{}, tags ...string) map[string]string
- func Rune(i interface{}) rune
- func Runes(i interface{}) []rune
- func SliceAny(i interface{}) []interface{}
- func SliceStr(i interface{}) []string
- func String(i interface{}) string
- func Strings(i interface{}) []string
- func Struct(params interface{}, pointer interface{}, mapping ...map[string]string) (err error)
- func Uint(i interface{}) uint
- func Uint16(i interface{}) uint16
- func Uint32(i interface{}) uint32
- func Uint64(i interface{}) uint64
- func Uint8(i interface{}) uint8
- func UnsafeBytesToStr(b []byte) string
- func UnsafeStrToBytes(s string) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var StructTagPriority = []string{"c", "p", "json"}
Functions ¶
func Convert ¶ added in v0.0.3
func Convert(any interface{}, t string, params ...interface{}) interface{}
func Interfaces ¶
func Interfaces(i interface{}) []interface{}
func MapStrStrDeep ¶
MapStrStrDeep 递归转换成key和value都是字符串的map
func UnsafeBytesToStr ¶
func UnsafeStrToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.