Documentation ¶ Index ¶ func Generate(ctx context.Context, out io.Writer, pkg Package, fields []Field) error type Field func (f *Field) SetPackage(pkg string) func (f *Field) Validate() error type Package func (p *Package) Validate() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Generate ¶ func Generate(ctx context.Context, out io.Writer, pkg Package, fields []Field) error Types ¶ type Field ¶ type Field struct { FieldName string FieldType string KeyName string // contains filtered or unexported fields } func (*Field) SetPackage ¶ func (f *Field) SetPackage(pkg string) func (*Field) Validate ¶ func (f *Field) Validate() error type Package ¶ type Package struct { PackageName string ImportPackages []string Version string } func (*Package) Validate ¶ func (p *Package) Validate() error Source Files ¶ View all Source files gen.go Click to show internal directories. Click to hide internal directories.