Documentation ¶
Overview ¶
The avrogo command generates Go types for the Avro schemas specified on the command line. Each schema file results in a Go file with the same basename but with a ".go" suffix, or multiple files if -split is set. If multiple schema files have the same basename, successively more elements of their full path are used (replacing path separators with "_") until they're not the same any more.
Type names within different schemas may refer to one another; for example to put a shared definition in a separate .avsc file.
Usage:
usage: avrogo [flags] schema-file... -srcDir string directory with source files to use (default "."). After adding this flag, schema-files are optional -d string directory to write Go files to (default ".") -p string package name (defaults to $GOPACKAGE) -t generated files will have _test.go suffix -s string suffix for generated files (default "_gen") -tokenize if true, generate one dedicated file per qualified name found in the schema files
By default, a type is generated for each Avro definition in the schema. Some additional metadata fields are recognized:
See the README for a full description of how schemas map to generated Go types: https://github.com/heetch/avro/blob/master/README.md
Directories ¶
Path | Synopsis |
---|---|
Package avrotypemap is an internal implementation detail of the avrogo program and should not be used externally.
|
Package avrotypemap is an internal implementation detail of the avrogo program and should not be used externally. |
internal
|
|