Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // OutputFlag is the flag for the output. OutputFlag *gcgen.OutputLocVal // StructFieldsFlag is the flag for the struct fields. StructFieldsFlag *gcgen.StructFieldsVal // GenericsSignFlag is the flag for the generics sign. GenericsSignFlag *gcgen.GenericsSignVal // TypeNameFlag is the flag for the type name. TypeNameFlag *string )
View Source
var ( // Logger is the logger for the package. Logger *log.Logger // Generator is the generator for the package. Generator *gcgen.CodeGenerator[*GenData] )
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 // 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 // Dependencies is the list of dependencies. Dependencies []string // Stringer is the stringer for the type. Stringer []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.