Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Logger is the logger for the package. Logger *log.Logger // Generator is the generator for the package. Generator *ggen.CodeGenerator[*GenData] )
View Source
var ( // TypeNameFlag is the flag for the type name. TypeNameFlag *string )
Functions ¶
Types ¶
type GenData ¶
type GenData struct {
// PackageName is the name of the package.
PackageName string
// TypeName is the name of the type.
TypeName string
// TypeSig is the signature of the type.
TypeSig string
// Fields is the list of fields.
Fields map[string]string
// IteratorName is the name of the iterator.
IteratorName string
// IteratorSig is the signature of the iterator.
IteratorSig string
// ParamList is the list of parameters.
ParamList string
// AssignmentMap is the map of assignments.
AssignmentMap map[string]string
// Generics is the list of generics.
Generics string
}
GenData is the data for the generator.
func (*GenData) SetPackageName ¶
SetPackageName implements the ggen.Generater interface.
Click to show internal directories.
Click to hide internal directories.