Documentation ¶ Index ¶ func GetTag(s any, key string) (map[string]any, error) func ParseArrayStringStruct(rows [][]string, data any, p ParseFuncs) error type DiffData func DiffStruct(structA, structB any, ignoreKey []string) ([]*DiffData, error) type FieldName type ParseFuncs Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetTag ¶ func GetTag(s any, key string) (map[string]any, error) func ParseArrayStringStruct ¶ added in v0.1.9 func ParseArrayStringStruct(rows [][]string, data any, p ParseFuncs) error ParseArrayStringStruct 解析字符串数组到结构体切片 Types ¶ type DiffData ¶ added in v0.1.10 type DiffData struct { Field reflect.StructField ValueA reflect.Value ValueB reflect.Value } func DiffStruct ¶ added in v0.1.6 func DiffStruct(structA, structB any, ignoreKey []string) ([]*DiffData, error) 检测 structA 与 structB 的区别,返回字段名称及对应的 [A值, B值] type FieldName ¶ added in v0.1.9 type FieldName string type ParseFuncs ¶ added in v0.1.9 type ParseFuncs map[FieldName]func(txt string) (any, error) Source Files ¶ View all Source files conversion.godiff.gotag.go Click to show internal directories. Click to hide internal directories.