Documentation
¶
Index ¶
- func Append(source []interface{}, desc interface{}) []interface{}
- func Contains(search interface{}, target interface{}) bool
- func ContainsIgnoreCase(search string, target []string) bool
- func Generate(baseDir, pkgName string, models ...GenerateStruct)
- func IsEmpty(a interface{}) bool
- func IsHashAble(obj interface{}) bool
- func MD5(str string) string
- func MD5Bytes(data []byte) string
- func MapToStruct(obj interface{}, data map[string]interface{}) error
- func StructFields(s interface{}) []reflect.StructField
- func StructName(s interface{}) string
- func StructToMap(obj interface{}, excludes ...string) map[string]interface{}
- func StructTypeOf(s interface{}) reflect.Type
- func ToInterfaceArray(array interface{}) []interface{}
- type GenerateField
- type GenerateStruct
- type InputData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Append ¶
func Append(source []interface{}, desc interface{}) []interface{}
Append for interface
func ContainsIgnoreCase ¶
func Generate ¶
func Generate(baseDir, pkgName string, models ...GenerateStruct)
func IsHashAble ¶
func IsHashAble(obj interface{}) bool
IsHashAble check the object whether it can be used as the key of the map
func MapToStruct ¶
func StructToMap ¶
func StructTypeOf ¶
func ToInterfaceArray ¶
func ToInterfaceArray(array interface{}) []interface{}
ToInterfaceArray used to convert a array to array of interface
Types ¶
type GenerateField ¶
type GenerateField struct {
CamelName string
NativeField reflect.StructField
}
type GenerateStruct ¶
type GenerateStruct struct {
Name string
Fields []GenerateField
}
func GetGenerateStruct ¶
func GetGenerateStruct(s interface{}) GenerateStruct
Click to show internal directories.
Click to hide internal directories.