Versions in this module Expand all Collapse all v2 v2.27.3 Dec 11, 2024 v2.27.2 Dec 11, 2024 Changes in this version + func Struct(s string, w io.Writer, cfg Config) error + func StructFromSchema(schema avro.Schema, w io.Writer, cfg Config) error + type Config struct + Encoders bool + FullName bool + FullSchema bool + Initialisms []string + LogicalTypes []LogicalType + PackageName string + StrictTypes bool + Tags map[string]TagStyle + type Generator struct + func NewGenerator(pkg string, tags map[string]TagStyle, opts ...OptsFunc) *Generator + func (g *Generator) Parse(schema avro.Schema) + func (g *Generator) Reset() + func (g *Generator) Write(w io.Writer) error + type LogicalType struct + Import string + Name string + ThirdPartyImport string + Typ string + type OptsFunc func(*Generator) + func WithEncoders(b bool) OptsFunc + func WithFullName(b bool) OptsFunc + func WithFullSchema(b bool) OptsFunc + func WithInitialisms(ss []string) OptsFunc + func WithLogicalType(logicalType LogicalType) OptsFunc + func WithPackageDoc(text string) OptsFunc + func WithStrictTypes(b bool) OptsFunc + func WithTemplate(template string) OptsFunc + type TagStyle string + const Camel + const Kebab + const Original + const Snake + const UpperCamel