Versions in this module Expand all Collapse all v0 v0.0.1 Jan 30, 2020 Changes in this version + func Generate(path string, config *Config) error + type Config struct + FilePath string + Output string + ShouldOverwrite bool + Tag string + type Field struct + DBName string + func (f *Field) DecodeFunc() string + func (f *Field) EncodeFunc() string + func (f *Field) FieldFunc() string + func (f *Field) IsWrapType() bool + func (f *Field) Name() string + func (f *Field) UnwrapType() string + func (f *Field) WrapType() string + type FunctionGenerator interface + Generate func() ([]byte, error) + func Parse(fpath, tagField string) (FunctionGenerator, error) + type GoSourceGenerator struct + Structs []*Struct + func (g *GoSourceGenerator) Generate() ([]byte, error) + func (g *GoSourceGenerator) Package() string + type Struct struct + Fields []*Field + func (s *Struct) Name() string + func (s *Struct) Package() string + func (s *Struct) TableName() string