Documentation ¶
Overview ¶
Code generated by options-gen. DO NOT EDIT.
Index ¶
- func Generate(opts Options) error
- type Field
- type FieldFromTag
- type OptOptionsSetter
- func WithIgnoreStructs(opt []string) OptOptionsSetter
- func WithIncludeStructs(opt []string) OptOptionsSetter
- func WithIncludedFiles(opt []string) OptOptionsSetter
- func WithOutFilename(opt string) OptOptionsSetter
- func WithOutPackage(opt string) OptOptionsSetter
- func WithSource(opt string) OptOptionsSetter
- func WithTags(opt []string) OptOptionsSetter
- type Options
- type Struct
- type StructData
- type StructTag
- type TemplateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FieldFromTag ¶
type OptOptionsSetter ¶
type OptOptionsSetter func(o *Options)
func WithIgnoreStructs ¶
func WithIgnoreStructs(opt []string) OptOptionsSetter
func WithIncludeStructs ¶
func WithIncludeStructs(opt []string) OptOptionsSetter
func WithIncludedFiles ¶ added in v0.4.0
func WithIncludedFiles(opt []string) OptOptionsSetter
func WithOutFilename ¶
func WithOutFilename(opt string) OptOptionsSetter
func WithOutPackage ¶
func WithOutPackage(opt string) OptOptionsSetter
func WithSource ¶
func WithSource(opt string) OptOptionsSetter
func WithTags ¶
func WithTags(opt []string) OptOptionsSetter
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func NewOptions ¶
func NewOptions( options ...OptOptionsSetter, ) Options
type StructData ¶
type StructTag ¶
type StructTag struct { Name string // name of tag with public access. ex: Json, Sql, Pg Fields []FieldFromTag }
type TemplateData ¶
type TemplateData struct { PackageName string Structs []StructData }
Click to show internal directories.
Click to hide internal directories.