Versions in this module Expand all Collapse all v0 v0.0.2 Jun 8, 2024 v0.0.1 Jun 8, 2024 Changes in this version + func Generate(pkgName string, data []Data) []byte + type BuildValues struct + ArgumentType string + BuilderMethodName string + FakeName string + type BuilderGenerator struct + func NewBuilderGenerator(node *ast.TypeSpec, annotation annotations.Builder, an annotation.Node) *BuilderGenerator + func (g *BuilderGenerator) Generate(pcvs []PostConstructValues) ([]byte, []Import, error) + func (g *BuilderGenerator) Name() string + type BuilderValues struct + Arguments []struct{ ... } + BuildMethodName string + BuilderTypeName string + ConstructorName string + Fields []struct{ ... } + IsParametrized bool + IsPointer bool + ParameterConstraints string + Parameters string + PostConstructs []string + ReturnType string + type ConstructorGenerator struct + func NewConstructorGenerator(node *ast.TypeSpec, annotation annotations.Constructor, an annotation.Node) *ConstructorGenerator + func (g *ConstructorGenerator) Generate(pcvs []PostConstructValues) ([]byte, []Import, error) + func (g *ConstructorGenerator) Name() string + type ConstructorValues struct + Arguments []string + Fields []struct{ ... } + FunctionName string + IsParametrized bool + IsPointer bool + ParameterConstraints string + Parameters string + PostConstructs []string + ReturnType string + type Data struct + Data []byte + Imports []Import + type FileValues struct + Data string + HasImports bool + Imports []Import + PackageName string + type Import struct + Alias string + Package string + type OptionalGenerator struct + func NewOptionalGenerator(node *ast.TypeSpec, annotation annotations.Optional, an annotation.Node) *OptionalGenerator + func (g *OptionalGenerator) Generate(pcvs []PostConstructValues) ([]byte, []Import, error) + func (g *OptionalGenerator) Name() string + type OptionalValues struct + Fields []struct{ ... } + FunctionName string + IsParametrized bool + IsPointer bool + OptionalTypeName string + ParameterConstraints string + Parameters string + PostConstructs []string + ReturnType string + type PostConstructValues struct + Annotation annotations.PostConstruct + MethodName string + func PostConstructReceiverName(node annotation.Node) (string, PostConstructValues, error) + type WithValues struct + ArgumentType string + FieldName string + WithFunctionName string