Gen Avro schema from Go struct.
For example, from this struct
type Pointer struct {
in *int
}
avro-schema-gen will create a schema like this
{
"type":"record",
"name":"Pointer",
"fields":[
{
"name":"in",
"default":null,
"type":[
"null",
"long"
]
}
]
}
import avroschema "github.com/badboyd/avro-schema-gen"
type Pointer struct {
in *int
}
func main() {
avroschema.Generate(Pointer{})
}