Documentation
¶
Index ¶
- func GetGormTags(model any) amap.AMap
- func GetJsonTags(model any) amap.AMap
- func GetTypeTags(typ reflect.Type, tagNames []string, fs ...func(reflect.StructTag) bool) map[string]GF[string]
- func IsGormTagIgnore(t reflect.StructTag) bool
- func IsGtTagIgnore(tag reflect.StructTag) bool
- func IsJsonTagIgnore(t reflect.StructTag) bool
- func IsTagIgnore(tag reflect.StructTag, tagName string, exist bool, extTags ...string) bool
- type FFunc
- type GF
- func GetFieldTag(field reflect.StructField, tagName string, fs ...func(reflect.StructTag) bool) GF[string]
- func GetFieldTags(field reflect.StructField, tagNames []string, ...) GF[string]
- func GetGtTags(model any) GF[GtTags]
- func GetTypFor[T any](typ reflect.Type, tf TFunc[T], ff FFunc[T]) GF[T]
- func GetTypeTag(typ reflect.Type, tagName string, fs ...func(reflect.StructTag) bool) GF[string]
- func NewGF[T any]() GF[T]
- func ParseGormFieldTag(field reflect.StructField, fs ...func(reflect.StructTag) bool) GF[string]
- func ParseGormTags(typ reflect.Type, fs ...func(reflect.StructTag) bool) GF[string]
- func ParseGtFieldTag(field reflect.StructField, fs ...func(reflect.StructTag) bool) GF[GtTags]
- func ParseGtTags(typ reflect.Type, fs ...func(reflect.StructTag) bool) GF[GtTags]
- func ParseJsonFieldTag(field reflect.StructField, fs ...func(reflect.StructTag) bool) GF[string]
- func ParseJsonTags(typ reflect.Type, fs ...func(reflect.StructTag) bool) GF[string]
- type GtField
- type GtTag
- type GtTags
- type TFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTypeTags ¶
func GetTypeTags(typ reflect.Type, tagNames []string, fs ...func(reflect.StructTag) bool) map[string]GF[string]
GetTypeTags use to get the specified tag in the structure fs use to filter specified tags, true means filtering
func IsGormTagIgnore ¶
IsGormTagIgnore can determine gt-tags whether you do not need to parse
func IsGtTagIgnore ¶
IsGtTagIgnore can determine gt-tags whether you do not need to parse
func IsJsonTagIgnore ¶
IsJsonTagIgnore can determine gt-tags whether you do not need to parse
Types ¶
type GF ¶
func GetFieldTag ¶
func GetFieldTags ¶
func GetGtTags ¶
GetGtTags gt:"-" gt:"ignore" gt:"sub_sql" gt:"excel:NAME" gt:"field:table.column" gt:"field:table.column;excel:NAME" GetGtTags use to analyze and obtain GT tags in the structure model
func GetTypeTag ¶
func ParseGormFieldTag ¶
ParseGormFieldTag only support gorm:column
func ParseGormTags ¶
func ParseGtFieldTag ¶
func ParseGtTags ¶
ParseGtTags use to get all gt tags
func ParseJsonFieldTag ¶
func ParseJsonTags ¶
Click to show internal directories.
Click to hide internal directories.