Documentation ¶
Index ¶
- func ParseTagHandler(structName, fieldName, tag string)
- type Config
- func (s *Config) DefaultMethodName(t string) *Config
- func (s *Config) EnableAutoFormTag(t bool) *Config
- func (s *Config) EnableAutoJsonTag(t bool) *Config
- func (s *Config) EnableDebug(t bool) *Config
- func (s *Config) EnableTOFileSingle(t bool) *Config
- func (s *Config) EnableVOFileSingle(t bool) *Config
- func (s *Config) SavePath(t string) *Config
- type Struct2Service
- type TagInfo
- type TagInfoMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseTagHandler ¶
func ParseTagHandler(structName, fieldName, tag string)
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) DefaultMethodName ¶
func (*Config) EnableAutoFormTag ¶
func (*Config) EnableAutoJsonTag ¶
func (*Config) EnableDebug ¶
func (*Config) EnableTOFileSingle ¶
func (*Config) EnableVOFileSingle ¶
type Struct2Service ¶
type Struct2Service struct {
// contains filtered or unexported fields
}
func NewStruct2Service ¶
func NewStruct2Service(config *Config) *Struct2Service
func (*Struct2Service) AutoMigrate ¶
func (s *Struct2Service) AutoMigrate(t ...interface{}) *Struct2Service
func (*Struct2Service) Run ¶
func (s *Struct2Service) Run() error
type TagInfoMap ¶
func GetTagInfoMap ¶
func GetTagInfoMap() *TagInfoMap
func (*TagInfoMap) GetTag ¶
func (t *TagInfoMap) GetTag(structName, fieldName string) TagInfo
func (*TagInfoMap) InsertTag ¶
func (t *TagInfoMap) InsertTag(structName, fieldName string, tag TagInfo)
Click to show internal directories.
Click to hide internal directories.