Documentation ¶
Index ¶
- Constants
- type ReflectTag
- type ReflectTags
- func (this *ReflectTags) Log()
- func (this *ReflectTags) Parse(key string, v any)
- func (this *ReflectTags) ParseEnv(v any)
- func (this *ReflectTags) ParseGorm(v any)
- func (this *ReflectTags) ParseJson(v any)
- func (this *ReflectTags) ParseOne(v any, FieldName string, tagName string)
- func (this *ReflectTags) SetTagMap(tagMap *linkedhashmap.Map)
- func (this *ReflectTags) TagMap() *linkedhashmap.Map
- func (this *ReflectTags) ToString() string
Constants ¶
View Source
const TAG_ENV = "env"
View Source
const TAG_GROM = "gorm"
View Source
const TAG_JSON = "json"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReflectTag ¶
type ReflectTag struct { Tag string //env gorm json Field string //id TagName string //${web.server.name} TagValue string //web.server.com }
Id int32 `env:"${web.server.name}" gorm:"column:id;type:int(11);PRIMARY_KEY;comment:”" json:"id"`
func NewReflectTag ¶
func NewReflectTag() *ReflectTag
func (*ReflectTag) ParseEnv ¶ added in v1.0.6
func (this *ReflectTag) ParseEnv(tagstr string) *ReflectTag
func (*ReflectTag) ParseTag ¶
func (this *ReflectTag) ParseTag(tagstr string) *ReflectTag
type ReflectTags ¶
type ReflectTags struct {
// contains filtered or unexported fields
}
func NewReflectTags ¶
func NewReflectTags() *ReflectTags
func (*ReflectTags) Log ¶
func (this *ReflectTags) Log()
func (*ReflectTags) Parse ¶ added in v1.0.6
func (this *ReflectTags) Parse(key string, v any)
func (*ReflectTags) ParseEnv ¶ added in v1.0.6
func (this *ReflectTags) ParseEnv(v any)
func (*ReflectTags) ParseGorm ¶ added in v1.0.6
func (this *ReflectTags) ParseGorm(v any)
func (*ReflectTags) ParseJson ¶ added in v1.0.6
func (this *ReflectTags) ParseJson(v any)
func (*ReflectTags) ParseOne ¶
func (this *ReflectTags) ParseOne(v any, FieldName string, tagName string)
func (*ReflectTags) SetTagMap ¶
func (this *ReflectTags) SetTagMap(tagMap *linkedhashmap.Map)
func (*ReflectTags) TagMap ¶
func (this *ReflectTags) TagMap() *linkedhashmap.Map
func (*ReflectTags) ToString ¶
func (this *ReflectTags) ToString() string
Click to show internal directories.
Click to hide internal directories.