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.
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...
-d string
directory to write Go files to (default ".")
-p string
package name (defaults to $GOPACKAGE)
-t generated files will have _test.go suffix
-map string
map from Avro namespace to Go package.
By default, a type is generated for each Avro definition in the schema. Some additional metadata fields are recognized:
- If a definition has a "go.package" metadata field, the type from that package will be used instead. - If a definition has a "go.name" metadata field, the associated string will be used for the Go type name.
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
|
|
Click to show internal directories.
Click to hide internal directories.