Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateBuilder ¶
func GenerateBuilder(typeSpec *ast.TypeSpec, structHelper *StructGenHelper) error
GenerateBuilder generates the builder source code based on the given arguments.
Types ¶
type Field ¶
func (*Field) GetUsedPackageName ¶ added in v0.0.6
type StructGenHelper ¶
type StructGenHelper struct { Name string Package string Fields []*Field Imports []*Import // contains filtered or unexported fields }
func (*StructGenHelper) ToSource ¶
func (s *StructGenHelper) ToSource() string
Click to show internal directories.
Click to hide internal directories.