package
Version:
v2.0.0-...-45b51b8
Opens a new window with list of versions in this module.
Published: Jan 29, 2024
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package gen allows generating Go structs from avro schemas.
Struct generates Go structs based on the schema and writes them to w.
StructFromSchema generates Go structs based on the schema and writes them to w.
type Config struct {
PackageName string
}
Config configures the code generation.
type Generator struct {
}
Generator generates Go structs from schemas.
NewGenerator returns a generator.
func (g *Generator) Parse(schema avro.Schema)
Parse parses an avro schema into Go types.
Reset reset the generator.
Write writes Go code from the parsed schemas.
OptsFunc is a function that configures a generator.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.