Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OutputLocFlag *gcgen.OutputLocVal TypeListFlag *gcgen.TypeListVal GenericsFlag *gcgen.GenericsSignVal TypeNameFlag *string )
View Source
var ( // Logger is the logger to use. Logger *log.Logger // Generator is the generator to use. Generator *gcgen.CodeGenerator[*GenData] )
Functions ¶
Types ¶
type GenData ¶
type GenData struct {
// PackageName is the package name of the generated code.
PackageName string
// TypeName is the name of the generated type.
TypeName string
// TypeSig is the signature of the generated type.
TypeSig string
// GenericsSign is the signature of the generics.
GenericsSign string
// CellType is the type of each table's cell.
CellType string
// ZeroValue is the zero value of the cell type.
ZeroValue string
}
GenData is the data struct for the generator.
func (*GenData) SetPackageName ¶
SetPackageName implements the go_generator.Generater interface.
Click to show internal directories.
Click to hide internal directories.