package
Version:
v1.1.2
Opens a new window with list of versions in this module.
Published: Nov 8, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
IsArray returns true if the given value is an array.
IsMap returns true if the given value is a map.
IsSlice returns true if the given value is a slice.
IsStruct 判断参数是否为结构体或者结构体指针
func StructToMap[T any](i T) map[string]interface{}
StructToMap 将结构体转换为map
Source Files
¶
Click to show internal directories.
Click to hide internal directories.