Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildField ¶
BuildField represents field of BuildStruct.
type BuildSource ¶
type BuildSource struct { InlineInterfaces bool UseDatastoreWrapper bool Structs []*BuildStruct // contains filtered or unexported fields }
BuildSource represents source code of assembling..
func Parse ¶
func Parse(pkg *genbase.PackageInfo, typeInfos genbase.TypeInfos) (*BuildSource, error)
Parse construct *BuildSource from package & type information. deprecated. use *BuildSource#Parse instead.
func (*BuildSource) Emit ¶
func (b *BuildSource) Emit(args *[]string) ([]byte, error)
Emit generate wrapper code.
func (*BuildSource) Parse ¶ added in v1.1.0
func (b *BuildSource) Parse(pkg *genbase.PackageInfo, typeInfos genbase.TypeInfos) error
Parse construct *BuildSource from package & type information.
type BuildStruct ¶
type BuildStruct struct { Private bool Fields []*BuildField // contains filtered or unexported fields }
BuildStruct represents struct of assembling..
func (*BuildStruct) SimpleName ¶
func (st *BuildStruct) SimpleName() string
Name returns struct type name.
type BuildTag ¶
type BuildTag struct { Kind string // e.g. `goon:"kind,FooKind"` Name string PropertyNameAlter string // e.g. `qbg:"StartAt"` ID bool Ignore bool // e.g. Secret string `datastore:"-"` NoIndex bool // e.g. no index `datastore:",noindex"` // contains filtered or unexported fields }
BuildTag represents tag of BuildField.
Click to show internal directories.
Click to hide internal directories.