Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AllArgsConstructorGenerator ¶
type AllArgsConstructorGenerator struct { TypeName string Fields []*Field InitFunc string InitFuncReturnTypes []string PropagateInitFuncReturns bool }
AllArgsConstructorGenerator is a struct type that has the responsibility to generate a statement of a constructor with all of arguments.
type BuilderGenerator ¶
type BuilderGenerator struct { TypeName string Fields []*Field InitFunc string InitFuncReturnTypes []string PropagateInitFuncReturns bool }
BuilderGenerator is a struct type that has the responsibility to generate a statement of a builder.
type Field ¶
type Field struct { // FieldName is a name of the field. FieldName string // FieldType is a type of the field. FieldType string // ShouldIgnore marks whether the field should be ignored or not in a constructor. ShouldIgnore bool }
Field represents a field of the structure for a constructor to be generated.
Click to show internal directories.
Click to hide internal directories.