_struct

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffStruct added in v0.1.6

func DiffStruct(structA, structB any, ignoreKey []string) (map[string][2]string, error)

检测 structA 与 structB 的区别,返回字段名称及对应的 [A值, B值]

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 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)

Jump to

Keyboard shortcuts

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