diff --git a/README.md b/README.md index 8de21fef..2be9b31d 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![CircleCI](https://circleci.com/gh/actgardner/gogen-avro/tree/master.svg?style=svg)](https://circleci.com/gh/actgardner/gogen-avro/tree/master) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/actgardner/gogen-avro/master/LICENSE) -[![Version 9.0.0](https://img.shields.io/badge/version-9.0.0-lightgrey.svg)](https://github.com/actgardner/gogen-avro/releases) +[![Version 10.0.0](https://img.shields.io/badge/version-10.0.0-lightgrey.svg)](https://github.com/actgardner/gogen-avro/releases) Generates type-safe Go code based on your Avro schemas, including serializers and deserializers that support Avro's schema evolution rules. Also supports deserializing generic Avro data (in beta). @@ -34,7 +34,7 @@ gogen-avro has two parts: a tool which you install on your system (usually on yo To generate structs, install the command-line tool (this isn't necessary for the generic package): ``` -go get github.com/actgardner/gogen-avro/v9/cmd/... +go get github.com/actgardner/gogen-avro/v10/cmd/... ``` This will put the `gogen-avro` binary in `$GOPATH/bin`, which should be part of your PATH. @@ -46,7 +46,7 @@ _Note: Generic data is support is currently beta. Please report any issues or fe To deserialize generic Avro data into Go structs without generating code, instantiate a new `generic.Codec` with the reader and writer schemas: ``` -import "github.com/actgardner/gogen-avro/v9/generic" +import "github.com/actgardner/gogen-avro/v10/generic" codec, err := NewCodecFromSchema(writerSchema, readerSchema) // writerSchema and readerSchema may be the same schema if you're not dealing with evolution datum, err := codec.Deserialize(r) // r is an io.Reader with the Avro-encoded bytes @@ -60,7 +60,7 @@ To generate Go source files from one or more Avro schema files, run: gogen-avro [--containers=false] [--sources-comment=false] [--short-unions=false] [--package=] ``` -You can also use a `go:generate` directive in a source file ([example](https://github.com/actgardner/gogen-avro/blob/master/v9/test/primitive/generate.go#L3)): +You can also use a `go:generate` directive in a source file ([example](https://github.com/actgardner/gogen-avro/blob/master/v10/test/primitive/generate.go#L3)): ``` //go:generate $GOPATH/bin/gogen-avro . primitives.avsc @@ -87,15 +87,15 @@ Read Avro data from the given `io.Reader` and deserialize it into the generated ### Working with Object Container Files (OCF) -An example of how to write a container file can be found in [example/container/example.go](https://github.com/actgardner/gogen-avro/blob/master/v9/example/container/example.go). +An example of how to write a container file can be found in [example/container/example.go](https://github.com/actgardner/gogen-avro/blob/master/v10/example/container/example.go). -[Godocs for the container package](https://godoc.org/github.com/actgardner/gogen-avro/v9/container) +[Godocs for the container package](https://godoc.org/github.com/actgardner/gogen-avro/v10/container) ### Single-Object Encoding -An example of how to read and write Single-Object encoded messages (for use with Kafka, for instance) can be found in [example/single_object/example.go](https://github.com/actgardner/gogen-avro/blob/master/v9/example/single_object/example.go). +An example of how to read and write Single-Object encoded messages (for use with Kafka, for instance) can be found in [example/single_object/example.go](https://github.com/actgardner/gogen-avro/blob/master/v10/example/single_object/example.go). -[Godocs for the soe package](https://godoc.org/github.com/actgardner/gogen-avro/v9/soe) +[Godocs for the soe package](https://godoc.org/github.com/actgardner/gogen-avro/v10/soe) ### Examples @@ -103,11 +103,11 @@ The `example` directory contains simple example projects with an Avro schema. On ``` # Build the Go source files from the Avro schema using the generate directive -go generate github.com/actgardner/gogen-avro/v9/example +go generate github.com/actgardner/gogen-avro/v10/example # Install the example projects on the GOPATH -go install github.com/actgardner/gogen-avro/v9/example/record -go install github.com/actgardner/gogen-avro/v9/example/container +go install github.com/actgardner/gogen-avro/v10/example/record +go install github.com/actgardner/gogen-avro/v10/example/container ``` ### Naming @@ -181,7 +181,7 @@ When reporting issues, please include your reader and writer schemas, and the ou ``` import ( - "github.com/actgardner/gogen-avro/v9/compiler" + "github.com/actgardner/gogen-avro/v10/compiler" ) func init() { diff --git a/v10/benchmark.test b/v10/benchmark.test new file mode 100755 index 00000000..6ec01960 Binary files /dev/null and b/v10/benchmark.test differ diff --git a/v9/cmd/gogen-avro/config.go b/v10/cmd/gogen-avro/config.go similarity index 100% rename from v9/cmd/gogen-avro/config.go rename to v10/cmd/gogen-avro/config.go diff --git a/v9/cmd/gogen-avro/main.go b/v10/cmd/gogen-avro/main.go similarity index 90% rename from v9/cmd/gogen-avro/main.go rename to v10/cmd/gogen-avro/main.go index 55be2320..15726a22 100644 --- a/v9/cmd/gogen-avro/main.go +++ b/v10/cmd/gogen-avro/main.go @@ -7,13 +7,13 @@ import ( "path/filepath" "strings" - "github.com/actgardner/gogen-avro/v9/generator" - "github.com/actgardner/gogen-avro/v9/generator/flat" - "github.com/actgardner/gogen-avro/v9/parser" - "github.com/actgardner/gogen-avro/v9/resolver" + "github.com/actgardner/gogen-avro/v10/generator" + "github.com/actgardner/gogen-avro/v10/generator/flat" + "github.com/actgardner/gogen-avro/v10/parser" + "github.com/actgardner/gogen-avro/v10/resolver" ) -const fileComment = "// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT." +const fileComment = "// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT." func main() { cfg := parseCmdLine() diff --git a/v9/cmd/gogen-avro/main_test.go b/v10/cmd/gogen-avro/main_test.go similarity index 79% rename from v9/cmd/gogen-avro/main_test.go rename to v10/cmd/gogen-avro/main_test.go index b52ef596..6afb764e 100644 --- a/v9/cmd/gogen-avro/main_test.go +++ b/v10/cmd/gogen-avro/main_test.go @@ -9,18 +9,18 @@ func TestCodegenComment(t *testing.T) { sourcesComment bool out string }{ - {[]string{"file_1.avsc", "file_2.avsc"}, true, `// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. + {[]string{"file_1.avsc", "file_2.avsc"}, true, `// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCES: * file_1.avsc * file_2.avsc */`}, - {[]string{"file_1.avsc"}, true, `// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. + {[]string{"file_1.avsc"}, true, `// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * file_1.avsc */`}, - {[]string{"file_1.avsc", "file_2.avsc"}, false, `// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT.`}, + {[]string{"file_1.avsc", "file_2.avsc"}, false, `// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT.`}, } for _, tc := range tt { diff --git a/v9/compiler/compile.go b/v10/compiler/compile.go similarity index 90% rename from v9/compiler/compile.go rename to v10/compiler/compile.go index 6e873728..0e31f80f 100644 --- a/v9/compiler/compile.go +++ b/v10/compiler/compile.go @@ -2,10 +2,10 @@ package compiler import ( - "github.com/actgardner/gogen-avro/v9/parser" - "github.com/actgardner/gogen-avro/v9/resolver" - "github.com/actgardner/gogen-avro/v9/schema" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/parser" + "github.com/actgardner/gogen-avro/v10/resolver" + "github.com/actgardner/gogen-avro/v10/schema" + "github.com/actgardner/gogen-avro/v10/vm" ) // Given two Avro schemas, compile them into a program which can read the data diff --git a/v9/compiler/instruction.go b/v10/compiler/instruction.go similarity index 98% rename from v9/compiler/instruction.go rename to v10/compiler/instruction.go index 214a89a2..008f432c 100644 --- a/v9/compiler/instruction.go +++ b/v10/compiler/instruction.go @@ -3,7 +3,7 @@ package compiler import ( "fmt" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/vm" ) type irInstruction interface { diff --git a/v9/compiler/logging.go b/v10/compiler/logging.go similarity index 100% rename from v9/compiler/logging.go rename to v10/compiler/logging.go diff --git a/v9/compiler/method.go b/v10/compiler/method.go similarity index 99% rename from v9/compiler/method.go rename to v10/compiler/method.go index 254d7473..28286cb9 100644 --- a/v9/compiler/method.go +++ b/v10/compiler/method.go @@ -3,8 +3,8 @@ package compiler import ( "fmt" - "github.com/actgardner/gogen-avro/v9/schema" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/schema" + "github.com/actgardner/gogen-avro/v10/vm" ) type irMethod struct { diff --git a/v9/compiler/options.go b/v10/compiler/options.go similarity index 100% rename from v9/compiler/options.go rename to v10/compiler/options.go diff --git a/v9/compiler/program.go b/v10/compiler/program.go similarity index 98% rename from v9/compiler/program.go rename to v10/compiler/program.go index a44dc18a..3baaf861 100644 --- a/v9/compiler/program.go +++ b/v10/compiler/program.go @@ -3,7 +3,7 @@ package compiler import ( "fmt" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/vm" ) // Build an intermediate representation of the program where diff --git a/v9/container/avro/avro_container_block.go b/v10/container/avro/avro_container_block.go similarity index 95% rename from v9/container/avro/avro_container_block.go rename to v10/container/avro/avro_container_block.go index 087da59f..c136ea8d 100644 --- a/v9/container/avro/avro_container_block.go +++ b/v10/container/avro/avro_container_block.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCES: * block.avsc @@ -11,9 +11,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/container/avro/avro_container_header.go b/v10/container/avro/avro_container_header.go similarity index 95% rename from v9/container/avro/avro_container_header.go rename to v10/container/avro/avro_container_header.go index a617c670..73600628 100644 --- a/v9/container/avro/avro_container_header.go +++ b/v10/container/avro/avro_container_header.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCES: * block.avsc @@ -11,9 +11,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/container/avro/block.avsc b/v10/container/avro/block.avsc similarity index 100% rename from v9/container/avro/block.avsc rename to v10/container/avro/block.avsc diff --git a/v9/container/avro/bytes.go b/v10/container/avro/bytes.go similarity index 91% rename from v9/container/avro/bytes.go rename to v10/container/avro/bytes.go index 6329442f..d98b6981 100644 --- a/v9/container/avro/bytes.go +++ b/v10/container/avro/bytes.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCES: * block.avsc @@ -9,8 +9,8 @@ package avro import ( "encoding/json" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type Bytes []byte diff --git a/v9/container/avro/generate.go b/v10/container/avro/generate.go similarity index 100% rename from v9/container/avro/generate.go rename to v10/container/avro/generate.go diff --git a/v9/container/avro/header.avsc b/v10/container/avro/header.avsc similarity index 100% rename from v9/container/avro/header.avsc rename to v10/container/avro/header.avsc diff --git a/v9/container/avro/magic.go b/v10/container/avro/magic.go similarity index 91% rename from v9/container/avro/magic.go rename to v10/container/avro/magic.go index 39965c3e..9836b124 100644 --- a/v9/container/avro/magic.go +++ b/v10/container/avro/magic.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCES: * block.avsc @@ -10,8 +10,8 @@ import ( "encoding/json" "io" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeMagic(r Magic, w io.Writer) error { diff --git a/v9/container/avro/map_bytes.go b/v10/container/avro/map_bytes.go similarity index 92% rename from v9/container/avro/map_bytes.go rename to v10/container/avro/map_bytes.go index 6aa81cc8..566f84ab 100644 --- a/v9/container/avro/map_bytes.go +++ b/v10/container/avro/map_bytes.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCES: * block.avsc @@ -7,8 +7,8 @@ package avro import ( - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" "io" ) diff --git a/v9/container/avro/sync.go b/v10/container/avro/sync.go similarity index 91% rename from v9/container/avro/sync.go rename to v10/container/avro/sync.go index ecde1ff3..cc1832b7 100644 --- a/v9/container/avro/sync.go +++ b/v10/container/avro/sync.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCES: * block.avsc @@ -10,8 +10,8 @@ import ( "encoding/json" "io" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeSync(r Sync, w io.Writer) error { diff --git a/v9/container/avro_record.go b/v10/container/avro_record.go similarity index 100% rename from v9/container/avro_record.go rename to v10/container/avro_record.go diff --git a/v9/container/logging.go b/v10/container/logging.go similarity index 100% rename from v9/container/logging.go rename to v10/container/logging.go diff --git a/v9/container/reader.go b/v10/container/reader.go similarity index 96% rename from v9/container/reader.go rename to v10/container/reader.go index 29a768d0..6a9d7724 100644 --- a/v9/container/reader.go +++ b/v10/container/reader.go @@ -8,8 +8,8 @@ import ( "github.com/golang/snappy" - "github.com/actgardner/gogen-avro/v9/container/avro" - "github.com/actgardner/gogen-avro/v9/schema" + "github.com/actgardner/gogen-avro/v10/container/avro" + "github.com/actgardner/gogen-avro/v10/schema" ) // Reader is a low-level primitive for reading the OCF framing of a file. diff --git a/v9/container/snappy_writer.go b/v10/container/snappy_writer.go similarity index 100% rename from v9/container/snappy_writer.go rename to v10/container/snappy_writer.go diff --git a/v9/container/writer.go b/v10/container/writer.go similarity index 98% rename from v9/container/writer.go rename to v10/container/writer.go index 42e5ce1b..d5f6a972 100644 --- a/v9/container/writer.go +++ b/v10/container/writer.go @@ -6,7 +6,7 @@ import ( "compress/flate" "io" - "github.com/actgardner/gogen-avro/v9/container/avro" + "github.com/actgardner/gogen-avro/v10/container/avro" ) // A Codec specifies how the blocks within a container file should be compressed. diff --git a/v10/cpu.pprof b/v10/cpu.pprof new file mode 100644 index 00000000..05532a41 Binary files /dev/null and b/v10/cpu.pprof differ diff --git a/v9/example/avro/bytes.go b/v10/example/avro/bytes.go similarity index 91% rename from v9/example/avro/bytes.go rename to v10/example/avro/bytes.go index 487d6c56..9b79da9c 100644 --- a/v9/example/avro/bytes.go +++ b/v10/example/avro/bytes.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * example.avsc @@ -8,8 +8,8 @@ package avro import ( "encoding/json" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type Bytes []byte diff --git a/v9/example/avro/demo_schema.go b/v10/example/avro/demo_schema.go similarity index 96% rename from v9/example/avro/demo_schema.go rename to v10/example/avro/demo_schema.go index 1ae6a1fe..1ee60c5d 100755 --- a/v9/example/avro/demo_schema.go +++ b/v10/example/avro/demo_schema.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * example.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/example/avro/demo_schema_container.go b/v10/example/avro/demo_schema_container.go similarity index 80% rename from v9/example/avro/demo_schema_container.go rename to v10/example/avro/demo_schema_container.go index aef13655..c5d5a8a4 100644 --- a/v9/example/avro/demo_schema_container.go +++ b/v10/example/avro/demo_schema_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * example.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewDemoSchemaWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/example/container/example.go b/v10/example/container/example.go similarity index 94% rename from v9/example/container/example.go rename to v10/example/container/example.go index cc2dbf63..62019071 100644 --- a/v9/example/container/example.go +++ b/v10/example/container/example.go @@ -6,8 +6,8 @@ import ( "io" "os" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/example/avro" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/example/avro" ) func main() { diff --git a/v9/example/example.avsc b/v10/example/example.avsc similarity index 100% rename from v9/example/example.avsc rename to v10/example/example.avsc diff --git a/v9/example/generate.go b/v10/example/generate.go similarity index 100% rename from v9/example/generate.go rename to v10/example/generate.go diff --git a/v9/example/record/example.go b/v10/example/record/example.go similarity index 93% rename from v9/example/record/example.go rename to v10/example/record/example.go index 2ca1d645..aa0d46b1 100644 --- a/v9/example/record/example.go +++ b/v10/example/record/example.go @@ -5,7 +5,7 @@ import ( "bytes" "fmt" - "github.com/actgardner/gogen-avro/v9/example/avro" + "github.com/actgardner/gogen-avro/v10/example/avro" ) func main() { diff --git a/v9/example/single_object/example.go b/v10/example/single_object/example.go similarity index 93% rename from v9/example/single_object/example.go rename to v10/example/single_object/example.go index 3259e95e..278014d3 100644 --- a/v9/example/single_object/example.go +++ b/v10/example/single_object/example.go @@ -6,8 +6,8 @@ import ( "fmt" "reflect" - "github.com/actgardner/gogen-avro/v9/example/avro" - "github.com/actgardner/gogen-avro/v9/soe" + "github.com/actgardner/gogen-avro/v10/example/avro" + "github.com/actgardner/gogen-avro/v10/soe" ) func main() { diff --git a/v9/generator/flat/generator.go b/v10/generator/flat/generator.go similarity index 88% rename from v9/generator/flat/generator.go rename to v10/generator/flat/generator.go index 3ae6e89a..c386c670 100644 --- a/v9/generator/flat/generator.go +++ b/v10/generator/flat/generator.go @@ -1,9 +1,9 @@ package flat import ( - "github.com/actgardner/gogen-avro/v9/generator" - "github.com/actgardner/gogen-avro/v9/generator/flat/templates" - avro "github.com/actgardner/gogen-avro/v9/schema" + "github.com/actgardner/gogen-avro/v10/generator" + "github.com/actgardner/gogen-avro/v10/generator/flat/templates" + avro "github.com/actgardner/gogen-avro/v10/schema" ) // FlatPackageGenerator emits a file per generated type, all in a single Go package without handling namespacing diff --git a/v9/generator/flat/templates/array.go b/v10/generator/flat/templates/array.go similarity index 95% rename from v9/generator/flat/templates/array.go rename to v10/generator/flat/templates/array.go index 17015c20..6d37d709 100644 --- a/v9/generator/flat/templates/array.go +++ b/v10/generator/flat/templates/array.go @@ -4,8 +4,8 @@ const ArrayTemplate = ` import ( "io" - "github.com/actgardner/gogen-avro/v9/vm/types" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" ) func {{ .SerializerMethod }}(r {{ .GoType }}, w io.Writer) error { diff --git a/v9/generator/flat/templates/bytes.go b/v10/generator/flat/templates/bytes.go similarity index 94% rename from v9/generator/flat/templates/bytes.go rename to v10/generator/flat/templates/bytes.go index dc45c099..a4e41d65 100644 --- a/v9/generator/flat/templates/bytes.go +++ b/v10/generator/flat/templates/bytes.go @@ -4,8 +4,8 @@ const BytesTemplate = ` import ( "encoding/json" - "github.com/actgardner/gogen-avro/v9/vm/types" - "github.com/actgardner/gogen-avro/v9/util" + "github.com/actgardner/gogen-avro/v10/vm/types" + "github.com/actgardner/gogen-avro/v10/util" ) type Bytes []byte diff --git a/v9/generator/flat/templates/enum.go b/v10/generator/flat/templates/enum.go similarity index 96% rename from v9/generator/flat/templates/enum.go rename to v10/generator/flat/templates/enum.go index 5e217e6c..7b0b4019 100644 --- a/v9/generator/flat/templates/enum.go +++ b/v10/generator/flat/templates/enum.go @@ -6,8 +6,8 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/vm/types" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" ) {{ if ne .Doc "" }}// {{ .Doc}}{{ end }} diff --git a/v9/generator/flat/templates/fixed.go b/v10/generator/flat/templates/fixed.go similarity index 95% rename from v9/generator/flat/templates/fixed.go rename to v10/generator/flat/templates/fixed.go index db318fe4..d7387259 100644 --- a/v9/generator/flat/templates/fixed.go +++ b/v10/generator/flat/templates/fixed.go @@ -5,8 +5,8 @@ import ( "io" "encoding/json" - "github.com/actgardner/gogen-avro/v9/vm/types" - "github.com/actgardner/gogen-avro/v9/util" + "github.com/actgardner/gogen-avro/v10/vm/types" + "github.com/actgardner/gogen-avro/v10/util" ) func {{ .SerializerMethod }}(r {{ .GoType }}, w io.Writer) error { diff --git a/v9/generator/flat/templates/lookup.go b/v10/generator/flat/templates/lookup.go similarity index 93% rename from v9/generator/flat/templates/lookup.go rename to v10/generator/flat/templates/lookup.go index d1683221..32310e8d 100644 --- a/v9/generator/flat/templates/lookup.go +++ b/v10/generator/flat/templates/lookup.go @@ -6,8 +6,8 @@ import ( "fmt" "text/template" - avro "github.com/actgardner/gogen-avro/v9/schema" - "github.com/actgardner/gogen-avro/v9/schema/canonical" + avro "github.com/actgardner/gogen-avro/v10/schema" + "github.com/actgardner/gogen-avro/v10/schema/canonical" ) var NoTemplateForType = fmt.Errorf("No template exists for supplied type") diff --git a/v9/generator/flat/templates/map.go b/v10/generator/flat/templates/map.go similarity index 96% rename from v9/generator/flat/templates/map.go rename to v10/generator/flat/templates/map.go index ea90749a..cd2de18a 100644 --- a/v9/generator/flat/templates/map.go +++ b/v10/generator/flat/templates/map.go @@ -3,8 +3,8 @@ package templates const MapTemplate = ` import ( "io" - "github.com/actgardner/gogen-avro/v9/vm/types" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" ) func {{ .SerializerMethod }}(r {{ .GoType }}, w io.Writer) error { diff --git a/v9/generator/flat/templates/record.go b/v10/generator/flat/templates/record.go similarity index 97% rename from v9/generator/flat/templates/record.go rename to v10/generator/flat/templates/record.go index 9fa5d092..2292d0f7 100644 --- a/v9/generator/flat/templates/record.go +++ b/v10/generator/flat/templates/record.go @@ -6,9 +6,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/vm/types" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/compiler" + "github.com/actgardner/gogen-avro/v10/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/compiler" ) var _ = fmt.Printf diff --git a/v9/generator/flat/templates/record_container.go b/v10/generator/flat/templates/record_container.go similarity index 87% rename from v9/generator/flat/templates/record_container.go rename to v10/generator/flat/templates/record_container.go index 829bac9f..3ebe2b00 100644 --- a/v9/generator/flat/templates/record_container.go +++ b/v10/generator/flat/templates/record_container.go @@ -4,9 +4,9 @@ const RecordContainerTemplate = ` import ( "io" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/compiler" ) func {{ .NewWriterMethod }}(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/generator/flat/templates/union.go b/v10/generator/flat/templates/union.go similarity index 97% rename from v9/generator/flat/templates/union.go rename to v10/generator/flat/templates/union.go index 11539c2f..b5374299 100644 --- a/v9/generator/flat/templates/union.go +++ b/v10/generator/flat/templates/union.go @@ -6,9 +6,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm/types" ) diff --git a/v9/generator/namer.go b/v10/generator/namer.go similarity index 100% rename from v9/generator/namer.go rename to v10/generator/namer.go diff --git a/v9/generator/package.go b/v10/generator/package.go similarity index 100% rename from v9/generator/package.go rename to v10/generator/package.go diff --git a/v9/generator/util.go b/v10/generator/util.go similarity index 100% rename from v9/generator/util.go rename to v10/generator/util.go diff --git a/v9/generator/util_test.go b/v10/generator/util_test.go similarity index 100% rename from v9/generator/util_test.go rename to v10/generator/util_test.go diff --git a/v9/generic/array.go b/v10/generic/array.go similarity index 91% rename from v9/generic/array.go rename to v10/generic/array.go index 2061e1cb..49b313a2 100644 --- a/v9/generic/array.go +++ b/v10/generic/array.go @@ -1,8 +1,8 @@ package generic import ( - "github.com/actgardner/gogen-avro/v9/schema" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/schema" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type arrayDatum struct { diff --git a/v9/generic/datum.go b/v10/generic/datum.go similarity index 90% rename from v9/generic/datum.go rename to v10/generic/datum.go index 6d81709a..c7aeb881 100644 --- a/v9/generic/datum.go +++ b/v10/generic/datum.go @@ -1,8 +1,8 @@ package generic import ( - "github.com/actgardner/gogen-avro/v9/schema" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/schema" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type Datum interface { diff --git a/v9/generic/enum.go b/v10/generic/enum.go similarity index 94% rename from v9/generic/enum.go rename to v10/generic/enum.go index f465fba7..9e3d6564 100644 --- a/v9/generic/enum.go +++ b/v10/generic/enum.go @@ -1,8 +1,8 @@ package generic import ( - "github.com/actgardner/gogen-avro/v9/schema" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/schema" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type enumDatum struct { diff --git a/v9/generic/map.go b/v10/generic/map.go similarity index 91% rename from v9/generic/map.go rename to v10/generic/map.go index d04234ca..c991854a 100644 --- a/v9/generic/map.go +++ b/v10/generic/map.go @@ -1,8 +1,8 @@ package generic import ( - "github.com/actgardner/gogen-avro/v9/schema" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/schema" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type mapDatum struct { diff --git a/v9/generic/primitive.go b/v10/generic/primitive.go similarity index 95% rename from v9/generic/primitive.go rename to v10/generic/primitive.go index c0e4d04e..bba66d7e 100644 --- a/v9/generic/primitive.go +++ b/v10/generic/primitive.go @@ -1,7 +1,7 @@ package generic import ( - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type primitiveDatum struct { diff --git a/v9/generic/record.go b/v10/generic/record.go similarity index 94% rename from v9/generic/record.go rename to v10/generic/record.go index 00302119..77e5bf70 100644 --- a/v9/generic/record.go +++ b/v10/generic/record.go @@ -1,8 +1,8 @@ package generic import ( - "github.com/actgardner/gogen-avro/v9/schema" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/schema" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type recordDatum struct { diff --git a/v9/generic/record_test.go b/v10/generic/record_test.go similarity index 100% rename from v9/generic/record_test.go rename to v10/generic/record_test.go diff --git a/v9/generic/serde.go b/v10/generic/serde.go similarity index 85% rename from v9/generic/serde.go rename to v10/generic/serde.go index 95d8e41b..7831e92c 100644 --- a/v9/generic/serde.go +++ b/v10/generic/serde.go @@ -3,9 +3,9 @@ package generic import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/schema" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/schema" + "github.com/actgardner/gogen-avro/v10/vm" ) type Codec struct { diff --git a/v9/generic/union.go b/v10/generic/union.go similarity index 93% rename from v9/generic/union.go rename to v10/generic/union.go index 9c9f7629..3e1de1b1 100644 --- a/v9/generic/union.go +++ b/v10/generic/union.go @@ -1,8 +1,8 @@ package generic import ( - "github.com/actgardner/gogen-avro/v9/schema" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/schema" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type unionDatum struct { diff --git a/v9/go.mod b/v10/go.mod similarity index 89% rename from v9/go.mod rename to v10/go.mod index 3d1beda1..01a42c06 100644 --- a/v9/go.mod +++ b/v10/go.mod @@ -1,4 +1,4 @@ -module github.com/actgardner/gogen-avro/v9 +module github.com/actgardner/gogen-avro/v10 go 1.14 diff --git a/v9/go.sum b/v10/go.sum similarity index 100% rename from v9/go.sum rename to v10/go.sum diff --git a/v10/gogen-avro b/v10/gogen-avro new file mode 100755 index 00000000..a111146f Binary files /dev/null and b/v10/gogen-avro differ diff --git a/v10/mem.pprof b/v10/mem.pprof new file mode 100644 index 00000000..36888238 Binary files /dev/null and b/v10/mem.pprof differ diff --git a/v9/parser/errors.go b/v10/parser/errors.go similarity index 100% rename from v9/parser/errors.go rename to v10/parser/errors.go diff --git a/v9/parser/map_helper.go b/v10/parser/map_helper.go similarity index 100% rename from v9/parser/map_helper.go rename to v10/parser/map_helper.go diff --git a/v9/parser/namespace.go b/v10/parser/namespace.go similarity index 99% rename from v9/parser/namespace.go rename to v10/parser/namespace.go index e3f6a10b..63bd23c7 100644 --- a/v9/parser/namespace.go +++ b/v10/parser/namespace.go @@ -6,7 +6,7 @@ import ( "reflect" "strings" - avro "github.com/actgardner/gogen-avro/v9/schema" + avro "github.com/actgardner/gogen-avro/v10/schema" ) // Namespace is a mapping of avro.QualifiedNames to their Definitions, used to resolve diff --git a/v9/parser/util.go b/v10/parser/util.go similarity index 100% rename from v9/parser/util.go rename to v10/parser/util.go diff --git a/v9/resolver/resolver.go b/v10/resolver/resolver.go similarity index 94% rename from v9/resolver/resolver.go rename to v10/resolver/resolver.go index 787f2a6b..e782bad2 100644 --- a/v9/resolver/resolver.go +++ b/v10/resolver/resolver.go @@ -3,7 +3,7 @@ package resolver import ( "fmt" - avro "github.com/actgardner/gogen-avro/v9/schema" + avro "github.com/actgardner/gogen-avro/v10/schema" ) // ResolveDefinition resolves the References in a Definition one level deep diff --git a/v9/schema/array.go b/v10/schema/array.go similarity index 98% rename from v9/schema/array.go rename to v10/schema/array.go index c4fcc869..0f69a1a9 100644 --- a/v9/schema/array.go +++ b/v10/schema/array.go @@ -3,7 +3,7 @@ package schema import ( "fmt" - "github.com/actgardner/gogen-avro/v9/generator" + "github.com/actgardner/gogen-avro/v10/generator" ) type ArrayField struct { diff --git a/v9/schema/avro_type.go b/v10/schema/avro_type.go similarity index 100% rename from v9/schema/avro_type.go rename to v10/schema/avro_type.go diff --git a/v9/schema/bool.go b/v10/schema/bool.go similarity index 100% rename from v9/schema/bool.go rename to v10/schema/bool.go diff --git a/v9/schema/bytes.go b/v10/schema/bytes.go similarity index 95% rename from v9/schema/bytes.go rename to v10/schema/bytes.go index c5867ca8..9f0bb8ab 100644 --- a/v9/schema/bytes.go +++ b/v10/schema/bytes.go @@ -3,7 +3,7 @@ package schema import ( "fmt" - "github.com/actgardner/gogen-avro/v9/util" + "github.com/actgardner/gogen-avro/v10/util" ) type BytesField struct { diff --git a/v9/schema/canonical/canonical.go b/v10/schema/canonical/canonical.go similarity index 98% rename from v9/schema/canonical/canonical.go rename to v10/schema/canonical/canonical.go index fb589580..cb5de909 100644 --- a/v9/schema/canonical/canonical.go +++ b/v10/schema/canonical/canonical.go @@ -3,7 +3,7 @@ package canonical import ( "fmt" - "github.com/actgardner/gogen-avro/v9/schema" + "github.com/actgardner/gogen-avro/v10/schema" ) type CanonicalFields struct { diff --git a/v9/schema/canonical/canonical_test.go b/v10/schema/canonical/canonical_test.go similarity index 97% rename from v9/schema/canonical/canonical_test.go rename to v10/schema/canonical/canonical_test.go index 0c53d43b..19204d4b 100644 --- a/v9/schema/canonical/canonical_test.go +++ b/v10/schema/canonical/canonical_test.go @@ -4,8 +4,8 @@ import ( "encoding/json" "testing" - "github.com/actgardner/gogen-avro/v9/parser" - "github.com/actgardner/gogen-avro/v9/resolver" + "github.com/actgardner/gogen-avro/v10/parser" + "github.com/actgardner/gogen-avro/v10/resolver" "github.com/stretchr/testify/assert" ) diff --git a/v9/schema/canonical/crc.go b/v10/schema/canonical/crc.go similarity index 100% rename from v9/schema/canonical/crc.go rename to v10/schema/canonical/crc.go diff --git a/v9/schema/canonical/crc_test.go b/v10/schema/canonical/crc_test.go similarity index 100% rename from v9/schema/canonical/crc_test.go rename to v10/schema/canonical/crc_test.go diff --git a/v9/schema/constructable.go b/v10/schema/constructable.go similarity index 100% rename from v9/schema/constructable.go rename to v10/schema/constructable.go diff --git a/v9/schema/definition.go b/v10/schema/definition.go similarity index 100% rename from v9/schema/definition.go rename to v10/schema/definition.go diff --git a/v9/schema/double.go b/v10/schema/double.go similarity index 100% rename from v9/schema/double.go rename to v10/schema/double.go diff --git a/v9/schema/enum.go b/v10/schema/enum.go similarity index 97% rename from v9/schema/enum.go rename to v10/schema/enum.go index 2ca2a8bf..d8caddbf 100644 --- a/v9/schema/enum.go +++ b/v10/schema/enum.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/actgardner/gogen-avro/v9/generator" + "github.com/actgardner/gogen-avro/v10/generator" ) type EnumDefinition struct { diff --git a/v9/schema/evolution_test.go b/v10/schema/evolution_test.go similarity index 96% rename from v9/schema/evolution_test.go rename to v10/schema/evolution_test.go index 4c7d4ffb..fa226aed 100644 --- a/v9/schema/evolution_test.go +++ b/v10/schema/evolution_test.go @@ -3,8 +3,8 @@ package schema_test import ( "testing" - "github.com/actgardner/gogen-avro/v9/parser" - "github.com/actgardner/gogen-avro/v9/resolver" + "github.com/actgardner/gogen-avro/v10/parser" + "github.com/actgardner/gogen-avro/v10/resolver" "github.com/stretchr/testify/assert" ) diff --git a/v9/schema/field.go b/v10/schema/field.go similarity index 98% rename from v9/schema/field.go rename to v10/schema/field.go index bf071e4d..5f1cea16 100644 --- a/v9/schema/field.go +++ b/v10/schema/field.go @@ -4,7 +4,7 @@ package schema import ( "fmt" - "github.com/actgardner/gogen-avro/v9/generator" + "github.com/actgardner/gogen-avro/v10/generator" ) // invalidFieldNames is a list of field names that conflict with hard-coded method names on diff --git a/v9/schema/file_root.go b/v10/schema/file_root.go similarity index 100% rename from v9/schema/file_root.go rename to v10/schema/file_root.go diff --git a/v9/schema/fixed.go b/v10/schema/fixed.go similarity index 97% rename from v9/schema/fixed.go rename to v10/schema/fixed.go index 7fb23d31..25815334 100644 --- a/v9/schema/fixed.go +++ b/v10/schema/fixed.go @@ -3,7 +3,7 @@ package schema import ( "fmt" - "github.com/actgardner/gogen-avro/v9/generator" + "github.com/actgardner/gogen-avro/v10/generator" ) type FixedDefinition struct { diff --git a/v9/schema/float.go b/v10/schema/float.go similarity index 100% rename from v9/schema/float.go rename to v10/schema/float.go diff --git a/v9/schema/int.go b/v10/schema/int.go similarity index 100% rename from v9/schema/int.go rename to v10/schema/int.go diff --git a/v9/schema/long.go b/v10/schema/long.go similarity index 100% rename from v9/schema/long.go rename to v10/schema/long.go diff --git a/v9/schema/map.go b/v10/schema/map.go similarity index 97% rename from v9/schema/map.go rename to v10/schema/map.go index 24d362bd..534da333 100644 --- a/v9/schema/map.go +++ b/v10/schema/map.go @@ -3,7 +3,7 @@ package schema import ( "fmt" - "github.com/actgardner/gogen-avro/v9/generator" + "github.com/actgardner/gogen-avro/v10/generator" ) type MapField struct { diff --git a/v9/schema/node.go b/v10/schema/node.go similarity index 100% rename from v9/schema/node.go rename to v10/schema/node.go diff --git a/v9/schema/null.go b/v10/schema/null.go similarity index 100% rename from v9/schema/null.go rename to v10/schema/null.go diff --git a/v9/schema/primitive.go b/v10/schema/primitive.go similarity index 100% rename from v9/schema/primitive.go rename to v10/schema/primitive.go diff --git a/v9/schema/qualified_name.go b/v10/schema/qualified_name.go similarity index 100% rename from v9/schema/qualified_name.go rename to v10/schema/qualified_name.go diff --git a/v9/schema/record.go b/v10/schema/record.go similarity index 98% rename from v9/schema/record.go rename to v10/schema/record.go index ac724b96..5522cd9e 100644 --- a/v9/schema/record.go +++ b/v10/schema/record.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/actgardner/gogen-avro/v9/generator" + "github.com/actgardner/gogen-avro/v10/generator" ) type RecordDefinition struct { diff --git a/v9/schema/reference.go b/v10/schema/reference.go similarity index 100% rename from v9/schema/reference.go rename to v10/schema/reference.go diff --git a/v9/schema/string.go b/v10/schema/string.go similarity index 100% rename from v9/schema/string.go rename to v10/schema/string.go diff --git a/v9/schema/union.go b/v10/schema/union.go similarity index 98% rename from v9/schema/union.go rename to v10/schema/union.go index 270ba6c1..a5b07f7a 100644 --- a/v9/schema/union.go +++ b/v10/schema/union.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/actgardner/gogen-avro/v9/generator" + "github.com/actgardner/gogen-avro/v10/generator" ) type UnionField struct { diff --git a/v9/soe/avro_record.go b/v10/soe/avro_record.go similarity index 100% rename from v9/soe/avro_record.go rename to v10/soe/avro_record.go diff --git a/v9/soe/soe.go b/v10/soe/soe.go similarity index 100% rename from v9/soe/soe.go rename to v10/soe/soe.go diff --git a/v9/soe/soe_test.go b/v10/soe/soe_test.go similarity index 100% rename from v9/soe/soe_test.go rename to v10/soe/soe_test.go diff --git a/v9/test.sh b/v10/test.sh similarity index 100% rename from v9/test.sh rename to v10/test.sh diff --git a/v9/test/alias-field/alias_record.go b/v10/test/alias-field/alias_record.go similarity index 94% rename from v9/test/alias-field/alias_record.go rename to v10/test/alias-field/alias_record.go index ef595381..790bbc0a 100644 --- a/v9/test/alias-field/alias_record.go +++ b/v10/test/alias-field/alias_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/alias-field/alias_record_container.go b/v10/test/alias-field/alias_record_container.go similarity index 80% rename from v9/test/alias-field/alias_record_container.go rename to v10/test/alias-field/alias_record_container.go index bf737703..e4e0cbfa 100644 --- a/v9/test/alias-field/alias_record_container.go +++ b/v10/test/alias-field/alias_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewAliasRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/alias-field/evolution.avsc b/v10/test/alias-field/evolution.avsc similarity index 100% rename from v9/test/alias-field/evolution.avsc rename to v10/test/alias-field/evolution.avsc diff --git a/v9/test/alias-field/evolution.json b/v10/test/alias-field/evolution.json similarity index 100% rename from v9/test/alias-field/evolution.json rename to v10/test/alias-field/evolution.json diff --git a/v9/test/alias-field/evolution/alias_record.go b/v10/test/alias-field/evolution/alias_record.go similarity index 94% rename from v9/test/alias-field/evolution/alias_record.go rename to v10/test/alias-field/evolution/alias_record.go index d466ef43..b708b41c 100644 --- a/v9/test/alias-field/evolution/alias_record.go +++ b/v10/test/alias-field/evolution/alias_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/alias-field/evolution/alias_record_container.go b/v10/test/alias-field/evolution/alias_record_container.go similarity index 80% rename from v9/test/alias-field/evolution/alias_record_container.go rename to v10/test/alias-field/evolution/alias_record_container.go index 6381d63a..9d6b5946 100644 --- a/v9/test/alias-field/evolution/alias_record_container.go +++ b/v10/test/alias-field/evolution/alias_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewAliasRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/alias-field/fixtures.json b/v10/test/alias-field/fixtures.json similarity index 100% rename from v9/test/alias-field/fixtures.json rename to v10/test/alias-field/fixtures.json diff --git a/v9/test/alias-field/generate.go b/v10/test/alias-field/generate.go similarity index 100% rename from v9/test/alias-field/generate.go rename to v10/test/alias-field/generate.go diff --git a/v9/test/alias-field/schema.avsc b/v10/test/alias-field/schema.avsc similarity index 100% rename from v9/test/alias-field/schema.avsc rename to v10/test/alias-field/schema.avsc diff --git a/v9/test/alias-field/schema_test.go b/v10/test/alias-field/schema_test.go similarity index 69% rename from v9/test/alias-field/schema_test.go rename to v10/test/alias-field/schema_test.go index 039cc25a..40e5a508 100644 --- a/v9/test/alias-field/schema_test.go +++ b/v10/test/alias-field/schema_test.go @@ -4,9 +4,9 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" - evolution "github.com/actgardner/gogen-avro/v9/test/alias-field/evolution" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" + evolution "github.com/actgardner/gogen-avro/v10/test/alias-field/evolution" ) func TestEvolution(t *testing.T) { diff --git a/v9/test/alias-fixed/event.go b/v10/test/alias-fixed/event.go similarity index 95% rename from v9/test/alias-fixed/event.go rename to v10/test/alias-fixed/event.go index f6a07279..e7acbbad 100644 --- a/v9/test/alias-fixed/event.go +++ b/v10/test/alias-fixed/event.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/union-root/event_container.go b/v10/test/alias-fixed/event_container.go similarity index 79% rename from v9/test/union-root/event_container.go rename to v10/test/alias-fixed/event_container.go index e4586be0..33754e00 100644 --- a/v9/test/union-root/event_container.go +++ b/v10/test/alias-fixed/event_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewEventWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/alias-fixed/evolution.avsc b/v10/test/alias-fixed/evolution.avsc similarity index 100% rename from v9/test/alias-fixed/evolution.avsc rename to v10/test/alias-fixed/evolution.avsc diff --git a/v9/test/alias-fixed/evolution.json b/v10/test/alias-fixed/evolution.json similarity index 100% rename from v9/test/alias-fixed/evolution.json rename to v10/test/alias-fixed/evolution.json diff --git a/v9/test/alias-fixed/evolution/event.go b/v10/test/alias-fixed/evolution/event.go similarity index 95% rename from v9/test/alias-fixed/evolution/event.go rename to v10/test/alias-fixed/evolution/event.go index 6542481e..1d82ef7f 100644 --- a/v9/test/alias-fixed/evolution/event.go +++ b/v10/test/alias-fixed/evolution/event.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/alias-fixed/evolution/event_container.go b/v10/test/alias-fixed/evolution/event_container.go similarity index 79% rename from v9/test/alias-fixed/evolution/event_container.go rename to v10/test/alias-fixed/evolution/event_container.go index 41386096..c4bc49c8 100644 --- a/v9/test/alias-fixed/evolution/event_container.go +++ b/v10/test/alias-fixed/evolution/event_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewEventWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/alias-fixed/evolution/ip_address.go b/v10/test/alias-fixed/evolution/ip_address.go similarity index 91% rename from v9/test/alias-fixed/evolution/ip_address.go rename to v10/test/alias-fixed/evolution/ip_address.go index 98ef6085..885553c7 100644 --- a/v9/test/alias-fixed/evolution/ip_address.go +++ b/v10/test/alias-fixed/evolution/ip_address.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -9,8 +9,8 @@ import ( "encoding/json" "io" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeIPAddress(r IPAddress, w io.Writer) error { diff --git a/v9/test/alias-fixed/evolution/union_ip_address_event.go b/v10/test/alias-fixed/evolution/union_ip_address_event.go similarity index 95% rename from v9/test/alias-fixed/evolution/union_ip_address_event.go rename to v10/test/alias-fixed/evolution/union_ip_address_event.go index 03507d16..d366d1b0 100644 --- a/v9/test/alias-fixed/evolution/union_ip_address_event.go +++ b/v10/test/alias-fixed/evolution/union_ip_address_event.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionIPAddressEventTypeEnum int diff --git a/v9/test/alias-fixed/fixtures.json b/v10/test/alias-fixed/fixtures.json similarity index 100% rename from v9/test/alias-fixed/fixtures.json rename to v10/test/alias-fixed/fixtures.json diff --git a/v9/test/alias-fixed/generate.go b/v10/test/alias-fixed/generate.go similarity index 100% rename from v9/test/alias-fixed/generate.go rename to v10/test/alias-fixed/generate.go diff --git a/v9/test/alias-fixed/ip_address.go b/v10/test/alias-fixed/ip_address.go similarity index 91% rename from v9/test/alias-fixed/ip_address.go rename to v10/test/alias-fixed/ip_address.go index c626ee0c..0f29915b 100644 --- a/v9/test/alias-fixed/ip_address.go +++ b/v10/test/alias-fixed/ip_address.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -9,8 +9,8 @@ import ( "encoding/json" "io" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeIp_address(r Ip_address, w io.Writer) error { diff --git a/v9/test/alias-fixed/schema.avsc b/v10/test/alias-fixed/schema.avsc similarity index 100% rename from v9/test/alias-fixed/schema.avsc rename to v10/test/alias-fixed/schema.avsc diff --git a/v9/test/alias-fixed/schema_test.go b/v10/test/alias-fixed/schema_test.go similarity index 80% rename from v9/test/alias-fixed/schema_test.go rename to v10/test/alias-fixed/schema_test.go index f8038f79..5d2c26aa 100644 --- a/v9/test/alias-fixed/schema_test.go +++ b/v10/test/alias-fixed/schema_test.go @@ -4,9 +4,9 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" - evolution "github.com/actgardner/gogen-avro/v9/test/alias-fixed/evolution" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" + evolution "github.com/actgardner/gogen-avro/v10/test/alias-fixed/evolution" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/alias-fixed/union_ip_address_event.go b/v10/test/alias-fixed/union_ip_address_event.go similarity index 95% rename from v9/test/alias-fixed/union_ip_address_event.go rename to v10/test/alias-fixed/union_ip_address_event.go index 870cb50e..4df041b2 100644 --- a/v9/test/alias-fixed/union_ip_address_event.go +++ b/v10/test/alias-fixed/union_ip_address_event.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionIp_addressEventTypeEnum int diff --git a/v9/test/arrays/bytes.go b/v10/test/alias-record/bytes.go similarity index 91% rename from v9/test/arrays/bytes.go rename to v10/test/alias-record/bytes.go index 79bda531..b603708d 100644 --- a/v9/test/arrays/bytes.go +++ b/v10/test/alias-record/bytes.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "encoding/json" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type Bytes []byte diff --git a/v9/test/alias-record/evolution.avsc b/v10/test/alias-record/evolution.avsc similarity index 100% rename from v9/test/alias-record/evolution.avsc rename to v10/test/alias-record/evolution.avsc diff --git a/v9/test/alias-record/evolution.json b/v10/test/alias-record/evolution.json similarity index 100% rename from v9/test/alias-record/evolution.json rename to v10/test/alias-record/evolution.json diff --git a/v9/test/alias-record/evolution/aliased_record.go b/v10/test/alias-record/evolution/aliased_record.go similarity index 95% rename from v9/test/alias-record/evolution/aliased_record.go rename to v10/test/alias-record/evolution/aliased_record.go index d5aaff91..0c118159 100644 --- a/v9/test/alias-record/evolution/aliased_record.go +++ b/v10/test/alias-record/evolution/aliased_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/alias-record/evolution/aliased_record_container.go b/v10/test/alias-record/evolution/aliased_record_container.go similarity index 81% rename from v9/test/alias-record/evolution/aliased_record_container.go rename to v10/test/alias-record/evolution/aliased_record_container.go index 5c2c20c2..c1390428 100644 --- a/v9/test/alias-record/evolution/aliased_record_container.go +++ b/v10/test/alias-record/evolution/aliased_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewAliasedRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/primitive/evolution/bytes.go b/v10/test/alias-record/evolution/bytes.go similarity index 91% rename from v9/test/primitive/evolution/bytes.go rename to v10/test/alias-record/evolution/bytes.go index 2d0dba6e..24f0780d 100644 --- a/v9/test/primitive/evolution/bytes.go +++ b/v10/test/alias-record/evolution/bytes.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -8,8 +8,8 @@ package avro import ( "encoding/json" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type Bytes []byte diff --git a/v9/test/alias-record/evolution/nested_test_record.go b/v10/test/alias-record/evolution/nested_test_record.go similarity index 94% rename from v9/test/alias-record/evolution/nested_test_record.go rename to v10/test/alias-record/evolution/nested_test_record.go index 57f79198..7994072d 100644 --- a/v9/test/alias-record/evolution/nested_test_record.go +++ b/v10/test/alias-record/evolution/nested_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/alias-record/evolution/nested_test_record_container.go b/v10/test/alias-record/evolution/nested_test_record_container.go similarity index 81% rename from v9/test/alias-record/evolution/nested_test_record_container.go rename to v10/test/alias-record/evolution/nested_test_record_container.go index 9a569ab3..70fb08f5 100644 --- a/v9/test/alias-record/evolution/nested_test_record_container.go +++ b/v10/test/alias-record/evolution/nested_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewNestedTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/alias-record/evolution/union_aliased_record_nested_test_record.go b/v10/test/alias-record/evolution/union_aliased_record_nested_test_record.go similarity index 96% rename from v9/test/alias-record/evolution/union_aliased_record_nested_test_record.go rename to v10/test/alias-record/evolution/union_aliased_record_nested_test_record.go index e2df048e..527de0cb 100644 --- a/v9/test/alias-record/evolution/union_aliased_record_nested_test_record.go +++ b/v10/test/alias-record/evolution/union_aliased_record_nested_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionAliasedRecordNestedTestRecordTypeEnum int diff --git a/v9/test/alias-record/fixtures.json b/v10/test/alias-record/fixtures.json similarity index 100% rename from v9/test/alias-record/fixtures.json rename to v10/test/alias-record/fixtures.json diff --git a/v9/test/alias-record/generate.go b/v10/test/alias-record/generate.go similarity index 100% rename from v9/test/alias-record/generate.go rename to v10/test/alias-record/generate.go diff --git a/v9/test/nested/nested_record.go b/v10/test/alias-record/nested_record.go similarity index 95% rename from v9/test/nested/nested_record.go rename to v10/test/alias-record/nested_record.go index 2555e91d..186bedfa 100644 --- a/v9/test/nested/nested_record.go +++ b/v10/test/alias-record/nested_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/nested/nested_record_container.go b/v10/test/alias-record/nested_record_container.go similarity index 80% rename from v9/test/nested/nested_record_container.go rename to v10/test/alias-record/nested_record_container.go index 08e79885..07135d0a 100644 --- a/v9/test/nested/nested_record_container.go +++ b/v10/test/alias-record/nested_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewNestedRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/alias-record/nested_test_record.go b/v10/test/alias-record/nested_test_record.go similarity index 94% rename from v9/test/alias-record/nested_test_record.go rename to v10/test/alias-record/nested_test_record.go index abf4e1bb..801d342f 100644 --- a/v9/test/alias-record/nested_test_record.go +++ b/v10/test/alias-record/nested_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/alias-record/nested_test_record_container.go b/v10/test/alias-record/nested_test_record_container.go similarity index 81% rename from v9/test/alias-record/nested_test_record_container.go rename to v10/test/alias-record/nested_test_record_container.go index 74bb9243..3a2092b2 100644 --- a/v9/test/alias-record/nested_test_record_container.go +++ b/v10/test/alias-record/nested_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewNestedTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/alias-record/schema.avsc b/v10/test/alias-record/schema.avsc similarity index 100% rename from v9/test/alias-record/schema.avsc rename to v10/test/alias-record/schema.avsc diff --git a/v9/test/alias-record/schema_test.go b/v10/test/alias-record/schema_test.go similarity index 81% rename from v9/test/alias-record/schema_test.go rename to v10/test/alias-record/schema_test.go index f1f52e41..15d71bd2 100644 --- a/v9/test/alias-record/schema_test.go +++ b/v10/test/alias-record/schema_test.go @@ -4,9 +4,9 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" - evolution "github.com/actgardner/gogen-avro/v9/test/alias-record/evolution" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" + evolution "github.com/actgardner/gogen-avro/v10/test/alias-record/evolution" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/alias-record/union_nested_record_nested_test_record.go b/v10/test/alias-record/union_nested_record_nested_test_record.go similarity index 96% rename from v9/test/alias-record/union_nested_record_nested_test_record.go rename to v10/test/alias-record/union_nested_record_nested_test_record.go index 41aeb650..a1d16436 100644 --- a/v9/test/alias-record/union_nested_record_nested_test_record.go +++ b/v10/test/alias-record/union_nested_record_nested_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNestedRecordNestedTestRecordTypeEnum int diff --git a/v9/test/arrays-union/array_test_record.go b/v10/test/arrays-union/array_test_record.go similarity index 94% rename from v9/test/arrays-union/array_test_record.go rename to v10/test/arrays-union/array_test_record.go index 0dc4e4d3..10c4afb0 100644 --- a/v9/test/arrays-union/array_test_record.go +++ b/v10/test/arrays-union/array_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/arrays/array_test_record_container.go b/v10/test/arrays-union/array_test_record_container.go similarity index 81% rename from v9/test/arrays/array_test_record_container.go rename to v10/test/arrays-union/array_test_record_container.go index 3802ddd3..932dadf7 100644 --- a/v9/test/arrays/array_test_record_container.go +++ b/v10/test/arrays-union/array_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewArrayTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/arrays-union/array_union_null_int.go b/v10/test/arrays-union/array_union_null_int.go similarity index 92% rename from v9/test/arrays-union/array_union_null_int.go rename to v10/test/arrays-union/array_union_null_int.go index b0565614..69037b3a 100644 --- a/v9/test/arrays-union/array_union_null_int.go +++ b/v10/test/arrays-union/array_union_null_int.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeArrayUnionNullInt(r []*UnionNullInt, w io.Writer) error { diff --git a/v9/test/arrays-union/fixtures.json b/v10/test/arrays-union/fixtures.json similarity index 100% rename from v9/test/arrays-union/fixtures.json rename to v10/test/arrays-union/fixtures.json diff --git a/v9/test/arrays-union/generate.go b/v10/test/arrays-union/generate.go similarity index 100% rename from v9/test/arrays-union/generate.go rename to v10/test/arrays-union/generate.go diff --git a/v9/test/arrays-union/schema.avsc b/v10/test/arrays-union/schema.avsc similarity index 100% rename from v9/test/arrays-union/schema.avsc rename to v10/test/arrays-union/schema.avsc diff --git a/v9/test/arrays-union/schema_test.go b/v10/test/arrays-union/schema_test.go similarity index 75% rename from v9/test/arrays-union/schema_test.go rename to v10/test/arrays-union/schema_test.go index 77601bb8..e9442c86 100644 --- a/v9/test/arrays-union/schema_test.go +++ b/v10/test/arrays-union/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/arrays-union/union_null_int.go b/v10/test/arrays-union/union_null_int.go similarity index 94% rename from v9/test/arrays-union/union_null_int.go rename to v10/test/arrays-union/union_null_int.go index af13f806..0a4c92bd 100644 --- a/v9/test/arrays-union/union_null_int.go +++ b/v10/test/arrays-union/union_null_int.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullIntTypeEnum int diff --git a/v9/test/arrays/array_bool.go b/v10/test/arrays/array_bool.go similarity index 91% rename from v9/test/arrays/array_bool.go rename to v10/test/arrays/array_bool.go index 23eea80b..1194a859 100644 --- a/v9/test/arrays/array_bool.go +++ b/v10/test/arrays/array_bool.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeArrayBool(r []bool, w io.Writer) error { diff --git a/v9/test/arrays/array_bytes.go b/v10/test/arrays/array_bytes.go similarity index 91% rename from v9/test/arrays/array_bytes.go rename to v10/test/arrays/array_bytes.go index ceaa02b9..3e85c2a2 100644 --- a/v9/test/arrays/array_bytes.go +++ b/v10/test/arrays/array_bytes.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeArrayBytes(r []Bytes, w io.Writer) error { diff --git a/v9/test/arrays/array_double.go b/v10/test/arrays/array_double.go similarity index 92% rename from v9/test/arrays/array_double.go rename to v10/test/arrays/array_double.go index deb8f513..14aa7ee1 100644 --- a/v9/test/arrays/array_double.go +++ b/v10/test/arrays/array_double.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeArrayDouble(r []float64, w io.Writer) error { diff --git a/v9/test/arrays/array_float.go b/v10/test/arrays/array_float.go similarity index 91% rename from v9/test/arrays/array_float.go rename to v10/test/arrays/array_float.go index 8a30bb7f..253bd6cd 100644 --- a/v9/test/arrays/array_float.go +++ b/v10/test/arrays/array_float.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeArrayFloat(r []float32, w io.Writer) error { diff --git a/v9/test/arrays/array_int.go b/v10/test/arrays/array_int.go similarity index 91% rename from v9/test/arrays/array_int.go rename to v10/test/arrays/array_int.go index c4ef4914..6fe826bb 100644 --- a/v9/test/arrays/array_int.go +++ b/v10/test/arrays/array_int.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeArrayInt(r []int32, w io.Writer) error { diff --git a/v9/test/arrays/array_long.go b/v10/test/arrays/array_long.go similarity index 91% rename from v9/test/arrays/array_long.go rename to v10/test/arrays/array_long.go index 233101a5..54572bf3 100644 --- a/v9/test/arrays/array_long.go +++ b/v10/test/arrays/array_long.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeArrayLong(r []int64, w io.Writer) error { diff --git a/v9/test/nested-maps/array_string.go b/v10/test/arrays/array_string.go similarity index 91% rename from v9/test/nested-maps/array_string.go rename to v10/test/arrays/array_string.go index 24da42ca..25b27c62 100644 --- a/v9/test/nested-maps/array_string.go +++ b/v10/test/arrays/array_string.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeArrayString(r []string, w io.Writer) error { diff --git a/v9/test/arrays/array_test_record.go b/v10/test/arrays/array_test_record.go similarity index 97% rename from v9/test/arrays/array_test_record.go rename to v10/test/arrays/array_test_record.go index 26b28b04..5b6f83b5 100644 --- a/v9/test/arrays/array_test_record.go +++ b/v10/test/arrays/array_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/arrays-union/array_test_record_container.go b/v10/test/arrays/array_test_record_container.go similarity index 81% rename from v9/test/arrays-union/array_test_record_container.go rename to v10/test/arrays/array_test_record_container.go index 3802ddd3..932dadf7 100644 --- a/v9/test/arrays-union/array_test_record_container.go +++ b/v10/test/arrays/array_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewArrayTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/alias-record/bytes.go b/v10/test/arrays/bytes.go similarity index 91% rename from v9/test/alias-record/bytes.go rename to v10/test/arrays/bytes.go index 79bda531..b603708d 100644 --- a/v9/test/alias-record/bytes.go +++ b/v10/test/arrays/bytes.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "encoding/json" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type Bytes []byte diff --git a/v9/test/arrays/fixtures.json b/v10/test/arrays/fixtures.json similarity index 100% rename from v9/test/arrays/fixtures.json rename to v10/test/arrays/fixtures.json diff --git a/v9/test/arrays/generate.go b/v10/test/arrays/generate.go similarity index 100% rename from v9/test/arrays/generate.go rename to v10/test/arrays/generate.go diff --git a/v9/test/arrays/schema.avsc b/v10/test/arrays/schema.avsc similarity index 100% rename from v9/test/arrays/schema.avsc rename to v10/test/arrays/schema.avsc diff --git a/v9/test/arrays/schema_test.go b/v10/test/arrays/schema_test.go similarity index 75% rename from v9/test/arrays/schema_test.go rename to v10/test/arrays/schema_test.go index 91c8ecfb..e0ca5aa4 100644 --- a/v9/test/arrays/schema_test.go +++ b/v10/test/arrays/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/avro-java-string/event.go b/v10/test/avro-java-string/event.go similarity index 93% rename from v9/test/avro-java-string/event.go rename to v10/test/avro-java-string/event.go index f2c049f8..819c7af7 100644 --- a/v9/test/avro-java-string/event.go +++ b/v10/test/avro-java-string/event.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/alias-fixed/event_container.go b/v10/test/avro-java-string/event_container.go similarity index 79% rename from v9/test/alias-fixed/event_container.go rename to v10/test/avro-java-string/event_container.go index e4586be0..33754e00 100644 --- a/v9/test/alias-fixed/event_container.go +++ b/v10/test/avro-java-string/event_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewEventWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/avro-java-string/fixtures.json b/v10/test/avro-java-string/fixtures.json similarity index 100% rename from v9/test/avro-java-string/fixtures.json rename to v10/test/avro-java-string/fixtures.json diff --git a/v9/test/avro-java-string/generate.go b/v10/test/avro-java-string/generate.go similarity index 100% rename from v9/test/avro-java-string/generate.go rename to v10/test/avro-java-string/generate.go diff --git a/v9/test/avro-java-string/schema.avsc b/v10/test/avro-java-string/schema.avsc similarity index 100% rename from v9/test/avro-java-string/schema.avsc rename to v10/test/avro-java-string/schema.avsc diff --git a/v9/test/avro-java-string/schema_test.go b/v10/test/avro-java-string/schema_test.go similarity index 74% rename from v9/test/avro-java-string/schema_test.go rename to v10/test/avro-java-string/schema_test.go index ef64eadd..53fd8407 100644 --- a/v9/test/avro-java-string/schema_test.go +++ b/v10/test/avro-java-string/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/benchmark/LICESNE b/v10/test/benchmark/LICESNE similarity index 100% rename from v9/test/benchmark/LICESNE rename to v10/test/benchmark/LICESNE diff --git a/v9/test/benchmark/README.md b/v10/test/benchmark/README.md similarity index 100% rename from v9/test/benchmark/README.md rename to v10/test/benchmark/README.md diff --git a/v9/test/benchmark/bench_test.go b/v10/test/benchmark/bench_test.go similarity index 94% rename from v9/test/benchmark/bench_test.go rename to v10/test/benchmark/bench_test.go index 5de8954d..1c453207 100644 --- a/v9/test/benchmark/bench_test.go +++ b/v10/test/benchmark/bench_test.go @@ -3,9 +3,9 @@ package avro_benchmarks import ( "bytes" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/test/benchmark/models" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/test/benchmark/models" + "github.com/actgardner/gogen-avro/v10/vm" "github.com/stretchr/testify/assert" ) diff --git a/v9/test/benchmark/fixtures/superhero-simple-block.bin b/v10/test/benchmark/fixtures/superhero-simple-block.bin similarity index 100% rename from v9/test/benchmark/fixtures/superhero-simple-block.bin rename to v10/test/benchmark/fixtures/superhero-simple-block.bin diff --git a/v9/test/benchmark/fixtures/superhero.avsc b/v10/test/benchmark/fixtures/superhero.avsc similarity index 100% rename from v9/test/benchmark/fixtures/superhero.avsc rename to v10/test/benchmark/fixtures/superhero.avsc diff --git a/v9/test/benchmark/fixtures/superhero.bin b/v10/test/benchmark/fixtures/superhero.bin similarity index 100% rename from v9/test/benchmark/fixtures/superhero.bin rename to v10/test/benchmark/fixtures/superhero.bin diff --git a/v9/test/benchmark/models/array_superpower.go b/v10/test/benchmark/models/array_superpower.go similarity index 92% rename from v9/test/benchmark/models/array_superpower.go rename to v10/test/benchmark/models/array_superpower.go index b991adba..86b9732a 100644 --- a/v9/test/benchmark/models/array_superpower.go +++ b/v10/test/benchmark/models/array_superpower.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * superhero.avsc @@ -8,8 +8,8 @@ package models import ( "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeArraySuperpower(r []Superpower, w io.Writer) error { diff --git a/v9/test/benchmark/models/superhero.go b/v10/test/benchmark/models/superhero.go similarity index 96% rename from v9/test/benchmark/models/superhero.go rename to v10/test/benchmark/models/superhero.go index dab28556..ecf1c2ba 100644 --- a/v9/test/benchmark/models/superhero.go +++ b/v10/test/benchmark/models/superhero.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * superhero.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/benchmark/models/superpower.go b/v10/test/benchmark/models/superpower.go similarity index 96% rename from v9/test/benchmark/models/superpower.go rename to v10/test/benchmark/models/superpower.go index a862d9cc..e29cc34a 100644 --- a/v9/test/benchmark/models/superpower.go +++ b/v10/test/benchmark/models/superpower.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * superhero.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/complex-arrays-multifile/array_child.go b/v10/test/complex-arrays-multifile/array_child.go similarity index 92% rename from v9/test/complex-arrays-multifile/array_child.go rename to v10/test/complex-arrays-multifile/array_child.go index abbd56d7..8723cd89 100644 --- a/v9/test/complex-arrays-multifile/array_child.go +++ b/v10/test/complex-arrays-multifile/array_child.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCES: * parent.avsc @@ -9,8 +9,8 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeArrayChild(r []Child, w io.Writer) error { diff --git a/v9/test/complex-arrays-multifile/child.avsc b/v10/test/complex-arrays-multifile/child.avsc similarity index 100% rename from v9/test/complex-arrays-multifile/child.avsc rename to v10/test/complex-arrays-multifile/child.avsc diff --git a/v9/test/complex-arrays-multifile/child.go b/v10/test/complex-arrays-multifile/child.go similarity index 93% rename from v9/test/complex-arrays-multifile/child.go rename to v10/test/complex-arrays-multifile/child.go index c6f784e6..3f190ff6 100644 --- a/v9/test/complex-arrays-multifile/child.go +++ b/v10/test/complex-arrays-multifile/child.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCES: * parent.avsc @@ -11,9 +11,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/complex-arrays-multifile/child_container.go b/v10/test/complex-arrays-multifile/child_container.go similarity index 80% rename from v9/test/complex-arrays-multifile/child_container.go rename to v10/test/complex-arrays-multifile/child_container.go index 1995f8e0..1dc3e2d0 100644 --- a/v9/test/complex-arrays-multifile/child_container.go +++ b/v10/test/complex-arrays-multifile/child_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCES: * parent.avsc @@ -9,9 +9,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewChildWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/complex-arrays-multifile/fixtures.json b/v10/test/complex-arrays-multifile/fixtures.json similarity index 100% rename from v9/test/complex-arrays-multifile/fixtures.json rename to v10/test/complex-arrays-multifile/fixtures.json diff --git a/v9/test/complex-arrays-multifile/generate.go b/v10/test/complex-arrays-multifile/generate.go similarity index 100% rename from v9/test/complex-arrays-multifile/generate.go rename to v10/test/complex-arrays-multifile/generate.go diff --git a/v9/test/complex-arrays-multifile/parent.avsc b/v10/test/complex-arrays-multifile/parent.avsc similarity index 100% rename from v9/test/complex-arrays-multifile/parent.avsc rename to v10/test/complex-arrays-multifile/parent.avsc diff --git a/v9/test/complex-arrays-multifile/parent.go b/v10/test/complex-arrays-multifile/parent.go similarity index 94% rename from v9/test/complex-arrays-multifile/parent.go rename to v10/test/complex-arrays-multifile/parent.go index 41d96aba..32167eb2 100644 --- a/v9/test/complex-arrays-multifile/parent.go +++ b/v10/test/complex-arrays-multifile/parent.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCES: * parent.avsc @@ -11,9 +11,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/complex-arrays-multifile/parent_container.go b/v10/test/complex-arrays-multifile/parent_container.go similarity index 80% rename from v9/test/complex-arrays-multifile/parent_container.go rename to v10/test/complex-arrays-multifile/parent_container.go index def49d72..c80b3c5f 100644 --- a/v9/test/complex-arrays-multifile/parent_container.go +++ b/v10/test/complex-arrays-multifile/parent_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCES: * parent.avsc @@ -9,9 +9,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewParentWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/complex-arrays-multifile/schema_test.go b/v10/test/complex-arrays-multifile/schema_test.go similarity index 74% rename from v9/test/complex-arrays-multifile/schema_test.go rename to v10/test/complex-arrays-multifile/schema_test.go index 56ea0117..148b888d 100644 --- a/v9/test/complex-arrays-multifile/schema_test.go +++ b/v10/test/complex-arrays-multifile/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/complex-arrays/array_child.go b/v10/test/complex-arrays/array_child.go similarity index 91% rename from v9/test/complex-arrays/array_child.go rename to v10/test/complex-arrays/array_child.go index 61b44e20..e9387973 100644 --- a/v9/test/complex-arrays/array_child.go +++ b/v10/test/complex-arrays/array_child.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeArrayChild(r []Child, w io.Writer) error { diff --git a/v9/test/complex-arrays/child.go b/v10/test/complex-arrays/child.go similarity index 93% rename from v9/test/complex-arrays/child.go rename to v10/test/complex-arrays/child.go index 68c996b7..52bcfaa6 100644 --- a/v9/test/complex-arrays/child.go +++ b/v10/test/complex-arrays/child.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/complex-arrays/child_container.go b/v10/test/complex-arrays/child_container.go similarity index 79% rename from v9/test/complex-arrays/child_container.go rename to v10/test/complex-arrays/child_container.go index f914afb1..2c4b9bc4 100644 --- a/v9/test/complex-arrays/child_container.go +++ b/v10/test/complex-arrays/child_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewChildWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/complex-arrays/fixtures.json b/v10/test/complex-arrays/fixtures.json similarity index 100% rename from v9/test/complex-arrays/fixtures.json rename to v10/test/complex-arrays/fixtures.json diff --git a/v9/test/complex-arrays/generate.go b/v10/test/complex-arrays/generate.go similarity index 100% rename from v9/test/complex-arrays/generate.go rename to v10/test/complex-arrays/generate.go diff --git a/v9/test/complex-arrays/parent.go b/v10/test/complex-arrays/parent.go similarity index 94% rename from v9/test/complex-arrays/parent.go rename to v10/test/complex-arrays/parent.go index 6f015ba8..fe720943 100644 --- a/v9/test/complex-arrays/parent.go +++ b/v10/test/complex-arrays/parent.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/complex-arrays/parent_container.go b/v10/test/complex-arrays/parent_container.go similarity index 79% rename from v9/test/complex-arrays/parent_container.go rename to v10/test/complex-arrays/parent_container.go index e2468e7e..dab0019d 100644 --- a/v9/test/complex-arrays/parent_container.go +++ b/v10/test/complex-arrays/parent_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewParentWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/complex-arrays/schema.avsc b/v10/test/complex-arrays/schema.avsc similarity index 100% rename from v9/test/complex-arrays/schema.avsc rename to v10/test/complex-arrays/schema.avsc diff --git a/v9/test/complex-arrays/schema_test.go b/v10/test/complex-arrays/schema_test.go similarity index 74% rename from v9/test/complex-arrays/schema_test.go rename to v10/test/complex-arrays/schema_test.go index 8a957478..f9c34fe4 100644 --- a/v9/test/complex-arrays/schema_test.go +++ b/v10/test/complex-arrays/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/complex-union/array_int.go b/v10/test/complex-union/array_int.go similarity index 91% rename from v9/test/complex-union/array_int.go rename to v10/test/complex-union/array_int.go index c4ef4914..6fe826bb 100644 --- a/v9/test/complex-union/array_int.go +++ b/v10/test/complex-union/array_int.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeArrayInt(r []int32, w io.Writer) error { diff --git a/v9/test/complex-union/complex_union_test_record.go b/v10/test/complex-union/complex_union_test_record.go similarity index 95% rename from v9/test/complex-union/complex_union_test_record.go rename to v10/test/complex-union/complex_union_test_record.go index 1d5029ce..db1753eb 100644 --- a/v9/test/complex-union/complex_union_test_record.go +++ b/v10/test/complex-union/complex_union_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/complex-union/complex_union_test_record_container.go b/v10/test/complex-union/complex_union_test_record_container.go similarity index 82% rename from v9/test/complex-union/complex_union_test_record_container.go rename to v10/test/complex-union/complex_union_test_record_container.go index 6b83b014..0e559605 100644 --- a/v9/test/complex-union/complex_union_test_record_container.go +++ b/v10/test/complex-union/complex_union_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewComplexUnionTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/complex-union/fixtures.json b/v10/test/complex-union/fixtures.json similarity index 100% rename from v9/test/complex-union/fixtures.json rename to v10/test/complex-union/fixtures.json diff --git a/v9/test/complex-union/generate.go b/v10/test/complex-union/generate.go similarity index 100% rename from v9/test/complex-union/generate.go rename to v10/test/complex-union/generate.go diff --git a/v9/test/complex-union/map_int.go b/v10/test/complex-union/map_int.go similarity index 92% rename from v9/test/complex-union/map_int.go rename to v10/test/complex-union/map_int.go index bcb55975..67c8c928 100644 --- a/v9/test/complex-union/map_int.go +++ b/v10/test/complex-union/map_int.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -6,8 +6,8 @@ package avro import ( - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" "io" ) diff --git a/v9/test/complex-union/nested_union_record.go b/v10/test/complex-union/nested_union_record.go similarity index 94% rename from v9/test/complex-union/nested_union_record.go rename to v10/test/complex-union/nested_union_record.go index c4681145..e3398307 100644 --- a/v9/test/complex-union/nested_union_record.go +++ b/v10/test/complex-union/nested_union_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/complex-union/nested_union_record_container.go b/v10/test/complex-union/nested_union_record_container.go similarity index 81% rename from v9/test/complex-union/nested_union_record_container.go rename to v10/test/complex-union/nested_union_record_container.go index 26a8580f..883f7270 100644 --- a/v9/test/complex-union/nested_union_record_container.go +++ b/v10/test/complex-union/nested_union_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewNestedUnionRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/complex-union/schema.avsc b/v10/test/complex-union/schema.avsc similarity index 100% rename from v9/test/complex-union/schema.avsc rename to v10/test/complex-union/schema.avsc diff --git a/v9/test/complex-union/schema_test.go b/v10/test/complex-union/schema_test.go similarity index 76% rename from v9/test/complex-union/schema_test.go rename to v10/test/complex-union/schema_test.go index 368b729a..ef70fe77 100644 --- a/v9/test/complex-union/schema_test.go +++ b/v10/test/complex-union/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/complex-union/union_null_array_int_map_int_nested_union_record.go b/v10/test/complex-union/union_null_array_int_map_int_nested_union_record.go similarity index 96% rename from v9/test/complex-union/union_null_array_int_map_int_nested_union_record.go rename to v10/test/complex-union/union_null_array_int_map_int_nested_union_record.go index e3465034..d4971964 100644 --- a/v9/test/complex-union/union_null_array_int_map_int_nested_union_record.go +++ b/v10/test/complex-union/union_null_array_int_map_int_nested_union_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullArrayIntMapIntNestedUnionRecordTypeEnum int diff --git a/v9/test/default-fixed/fixed_default_test_record.go b/v10/test/default-fixed/fixed_default_test_record.go similarity index 95% rename from v9/test/default-fixed/fixed_default_test_record.go rename to v10/test/default-fixed/fixed_default_test_record.go index dd3e82d3..c01980bb 100644 --- a/v9/test/default-fixed/fixed_default_test_record.go +++ b/v10/test/default-fixed/fixed_default_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/default-fixed/fixed_default_test_record_container.go b/v10/test/default-fixed/fixed_default_test_record_container.go similarity index 82% rename from v9/test/default-fixed/fixed_default_test_record_container.go rename to v10/test/default-fixed/fixed_default_test_record_container.go index 714e27b2..e62fe19e 100644 --- a/v9/test/default-fixed/fixed_default_test_record_container.go +++ b/v10/test/default-fixed/fixed_default_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewFixedDefaultTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/default-fixed/generate.go b/v10/test/default-fixed/generate.go similarity index 100% rename from v9/test/default-fixed/generate.go rename to v10/test/default-fixed/generate.go diff --git a/v9/test/default-fixed/schema.avsc b/v10/test/default-fixed/schema.avsc similarity index 100% rename from v9/test/default-fixed/schema.avsc rename to v10/test/default-fixed/schema.avsc diff --git a/v9/test/default-fixed/schema_test.go b/v10/test/default-fixed/schema_test.go similarity index 100% rename from v9/test/default-fixed/schema_test.go rename to v10/test/default-fixed/schema_test.go diff --git a/v9/test/default-fixed/test_fixed_default_type.go b/v10/test/default-fixed/test_fixed_default_type.go similarity index 92% rename from v9/test/default-fixed/test_fixed_default_type.go rename to v10/test/default-fixed/test_fixed_default_type.go index b061ee86..0feaade2 100644 --- a/v9/test/default-fixed/test_fixed_default_type.go +++ b/v10/test/default-fixed/test_fixed_default_type.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -9,8 +9,8 @@ import ( "encoding/json" "io" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeTestFixedDefaultType(r TestFixedDefaultType, w io.Writer) error { diff --git a/v9/test/default-union/evolution.avsc b/v10/test/default-union/evolution.avsc similarity index 100% rename from v9/test/default-union/evolution.avsc rename to v10/test/default-union/evolution.avsc diff --git a/v9/test/evolve-union/evolution/union_null_string.go b/v10/test/default-union/evolution/union_null_string.go similarity index 94% rename from v9/test/evolve-union/evolution/union_null_string.go rename to v10/test/default-union/evolution/union_null_string.go index f34a8df2..e9f07e77 100644 --- a/v9/test/evolve-union/evolution/union_null_string.go +++ b/v10/test/default-union/evolution/union_null_string.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullStringTypeEnum int diff --git a/v9/test/default-union/evolution/union_rec.go b/v10/test/default-union/evolution/union_rec.go similarity index 93% rename from v9/test/default-union/evolution/union_rec.go rename to v10/test/default-union/evolution/union_rec.go index b8768e87..a805db63 100644 --- a/v9/test/default-union/evolution/union_rec.go +++ b/v10/test/default-union/evolution/union_rec.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/default-union/evolution/union_rec_container.go b/v10/test/default-union/evolution/union_rec_container.go similarity index 80% rename from v9/test/default-union/evolution/union_rec_container.go rename to v10/test/default-union/evolution/union_rec_container.go index d8bc66f5..2afedafb 100644 --- a/v9/test/default-union/evolution/union_rec_container.go +++ b/v10/test/default-union/evolution/union_rec_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewUnionRecWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/default-union/evolution/union_record.go b/v10/test/default-union/evolution/union_record.go similarity index 96% rename from v9/test/default-union/evolution/union_record.go rename to v10/test/default-union/evolution/union_record.go index 7c9d0b7b..90505fa4 100644 --- a/v9/test/default-union/evolution/union_record.go +++ b/v10/test/default-union/evolution/union_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/default-union/evolution/union_record_container.go b/v10/test/default-union/evolution/union_record_container.go similarity index 80% rename from v9/test/default-union/evolution/union_record_container.go rename to v10/test/default-union/evolution/union_record_container.go index ac33f230..83f5ba3a 100644 --- a/v9/test/default-union/evolution/union_record_container.go +++ b/v10/test/default-union/evolution/union_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewUnionRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/default-union/evolution/union_string_int.go b/v10/test/default-union/evolution/union_string_int.go similarity index 94% rename from v9/test/default-union/evolution/union_string_int.go rename to v10/test/default-union/evolution/union_string_int.go index 22e9b491..347ec56c 100644 --- a/v9/test/default-union/evolution/union_string_int.go +++ b/v10/test/default-union/evolution/union_string_int.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionStringIntTypeEnum int diff --git a/v9/test/default-union/evolution/union_union_rec_string.go b/v10/test/default-union/evolution/union_union_rec_string.go similarity index 95% rename from v9/test/default-union/evolution/union_union_rec_string.go rename to v10/test/default-union/evolution/union_union_rec_string.go index d3203a21..0add13a4 100644 --- a/v9/test/default-union/evolution/union_union_rec_string.go +++ b/v10/test/default-union/evolution/union_union_rec_string.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionUnionRecStringTypeEnum int diff --git a/v9/test/default-union/generate.go b/v10/test/default-union/generate.go similarity index 100% rename from v9/test/default-union/generate.go rename to v10/test/default-union/generate.go diff --git a/v9/test/default-union/schema.avsc b/v10/test/default-union/schema.avsc similarity index 100% rename from v9/test/default-union/schema.avsc rename to v10/test/default-union/schema.avsc diff --git a/v9/test/default-union/schema_test.go b/v10/test/default-union/schema_test.go similarity index 84% rename from v9/test/default-union/schema_test.go rename to v10/test/default-union/schema_test.go index 728fc27c..bff177ec 100644 --- a/v9/test/default-union/schema_test.go +++ b/v10/test/default-union/schema_test.go @@ -4,9 +4,9 @@ import ( "bytes" "testing" - "github.com/actgardner/gogen-avro/v9/compiler" - evolution "github.com/actgardner/gogen-avro/v9/test/default-union/evolution" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + evolution "github.com/actgardner/gogen-avro/v10/test/default-union/evolution" + "github.com/actgardner/gogen-avro/v10/vm" "github.com/stretchr/testify/assert" ) diff --git a/v9/test/default-union/union_record.go b/v10/test/default-union/union_record.go similarity index 94% rename from v9/test/default-union/union_record.go rename to v10/test/default-union/union_record.go index 5fa44bd3..9ab51970 100644 --- a/v9/test/default-union/union_record.go +++ b/v10/test/default-union/union_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/default-union/union_record_container.go b/v10/test/default-union/union_record_container.go similarity index 80% rename from v9/test/default-union/union_record_container.go rename to v10/test/default-union/union_record_container.go index afb64f35..8ad86e79 100644 --- a/v9/test/default-union/union_record_container.go +++ b/v10/test/default-union/union_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewUnionRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/enum-multiple-namespaces/com_company_shared_some_enum.go b/v10/test/enum-multiple-namespaces/com_company_shared_some_enum.go similarity index 94% rename from v9/test/enum-multiple-namespaces/com_company_shared_some_enum.go rename to v10/test/enum-multiple-namespaces/com_company_shared_some_enum.go index bb708f06..874d2165 100644 --- a/v9/test/enum-multiple-namespaces/com_company_shared_some_enum.go +++ b/v10/test/enum-multiple-namespaces/com_company_shared_some_enum.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,8 +10,8 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type ComCompanySharedSomeEnum int32 diff --git a/v9/test/enum-multiple-namespaces/com_company_shared_type_two.go b/v10/test/enum-multiple-namespaces/com_company_shared_type_two.go similarity index 94% rename from v9/test/enum-multiple-namespaces/com_company_shared_type_two.go rename to v10/test/enum-multiple-namespaces/com_company_shared_type_two.go index 9960dece..7188d58b 100644 --- a/v9/test/enum-multiple-namespaces/com_company_shared_type_two.go +++ b/v10/test/enum-multiple-namespaces/com_company_shared_type_two.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/enum-multiple-namespaces/com_company_shared_type_two_container.go b/v10/test/enum-multiple-namespaces/com_company_shared_type_two_container.go similarity index 82% rename from v9/test/enum-multiple-namespaces/com_company_shared_type_two_container.go rename to v10/test/enum-multiple-namespaces/com_company_shared_type_two_container.go index 24c9206c..248e5c07 100644 --- a/v9/test/enum-multiple-namespaces/com_company_shared_type_two_container.go +++ b/v10/test/enum-multiple-namespaces/com_company_shared_type_two_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewComCompanySharedTypeTwoWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/enum-multiple-namespaces/com_company_team_some_enum.go b/v10/test/enum-multiple-namespaces/com_company_team_some_enum.go similarity index 94% rename from v9/test/enum-multiple-namespaces/com_company_team_some_enum.go rename to v10/test/enum-multiple-namespaces/com_company_team_some_enum.go index d3874b91..1ae8f1b7 100644 --- a/v9/test/enum-multiple-namespaces/com_company_team_some_enum.go +++ b/v10/test/enum-multiple-namespaces/com_company_team_some_enum.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,8 +10,8 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type ComCompanyTeamSomeEnum int32 diff --git a/v9/test/enum-multiple-namespaces/com_company_team_some_type.go b/v10/test/enum-multiple-namespaces/com_company_team_some_type.go similarity index 95% rename from v9/test/enum-multiple-namespaces/com_company_team_some_type.go rename to v10/test/enum-multiple-namespaces/com_company_team_some_type.go index 17549f2b..c4506041 100644 --- a/v9/test/enum-multiple-namespaces/com_company_team_some_type.go +++ b/v10/test/enum-multiple-namespaces/com_company_team_some_type.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/enum-multiple-namespaces/com_company_team_some_type_container.go b/v10/test/enum-multiple-namespaces/com_company_team_some_type_container.go similarity index 82% rename from v9/test/enum-multiple-namespaces/com_company_team_some_type_container.go rename to v10/test/enum-multiple-namespaces/com_company_team_some_type_container.go index dc229b5f..a28727db 100644 --- a/v9/test/enum-multiple-namespaces/com_company_team_some_type_container.go +++ b/v10/test/enum-multiple-namespaces/com_company_team_some_type_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewComCompanyTeamSomeTypeWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/enum-multiple-namespaces/com_company_team_type_one.go b/v10/test/enum-multiple-namespaces/com_company_team_type_one.go similarity index 94% rename from v9/test/enum-multiple-namespaces/com_company_team_type_one.go rename to v10/test/enum-multiple-namespaces/com_company_team_type_one.go index f240a184..7a284028 100644 --- a/v9/test/enum-multiple-namespaces/com_company_team_type_one.go +++ b/v10/test/enum-multiple-namespaces/com_company_team_type_one.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/enum-multiple-namespaces/com_company_team_type_one_container.go b/v10/test/enum-multiple-namespaces/com_company_team_type_one_container.go similarity index 82% rename from v9/test/enum-multiple-namespaces/com_company_team_type_one_container.go rename to v10/test/enum-multiple-namespaces/com_company_team_type_one_container.go index 9538bc16..a13be012 100644 --- a/v9/test/enum-multiple-namespaces/com_company_team_type_one_container.go +++ b/v10/test/enum-multiple-namespaces/com_company_team_type_one_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewComCompanyTeamTypeOneWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/enum-multiple-namespaces/fixtures.json b/v10/test/enum-multiple-namespaces/fixtures.json similarity index 100% rename from v9/test/enum-multiple-namespaces/fixtures.json rename to v10/test/enum-multiple-namespaces/fixtures.json diff --git a/v9/test/enum-multiple-namespaces/generate.go b/v10/test/enum-multiple-namespaces/generate.go similarity index 100% rename from v9/test/enum-multiple-namespaces/generate.go rename to v10/test/enum-multiple-namespaces/generate.go diff --git a/v9/test/enum-multiple-namespaces/schema.avsc b/v10/test/enum-multiple-namespaces/schema.avsc similarity index 100% rename from v9/test/enum-multiple-namespaces/schema.avsc rename to v10/test/enum-multiple-namespaces/schema.avsc diff --git a/v9/test/enum-multiple-namespaces/schema_test.go b/v10/test/enum-multiple-namespaces/schema_test.go similarity index 88% rename from v9/test/enum-multiple-namespaces/schema_test.go rename to v10/test/enum-multiple-namespaces/schema_test.go index be60273e..e25f66b8 100644 --- a/v9/test/enum-multiple-namespaces/schema_test.go +++ b/v10/test/enum-multiple-namespaces/schema_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/enum/enum_test_record.go b/v10/test/enum/enum_test_record.go similarity index 94% rename from v9/test/enum/enum_test_record.go rename to v10/test/enum/enum_test_record.go index c0a16bc4..ec91405f 100644 --- a/v9/test/enum/enum_test_record.go +++ b/v10/test/enum/enum_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/enum/enum_test_record_container.go b/v10/test/enum/enum_test_record_container.go similarity index 81% rename from v9/test/enum/enum_test_record_container.go rename to v10/test/enum/enum_test_record_container.go index 6d889142..68bb48e4 100644 --- a/v9/test/enum/enum_test_record_container.go +++ b/v10/test/enum/enum_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewEnumTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/enum/fixtures.json b/v10/test/enum/fixtures.json similarity index 100% rename from v9/test/enum/fixtures.json rename to v10/test/enum/fixtures.json diff --git a/v9/test/enum/generate.go b/v10/test/enum/generate.go similarity index 100% rename from v9/test/enum/generate.go rename to v10/test/enum/generate.go diff --git a/v9/test/enum/schema.avsc b/v10/test/enum/schema.avsc similarity index 100% rename from v9/test/enum/schema.avsc rename to v10/test/enum/schema.avsc diff --git a/v9/test/enum/schema_test.go b/v10/test/enum/schema_test.go similarity index 84% rename from v9/test/enum/schema_test.go rename to v10/test/enum/schema_test.go index bbad01d0..f1a44725 100644 --- a/v9/test/enum/schema_test.go +++ b/v10/test/enum/schema_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/assert" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/enum/test_enum_type.go b/v10/test/enum/test_enum_type.go similarity index 94% rename from v9/test/enum/test_enum_type.go rename to v10/test/enum/test_enum_type.go index 0de81db5..d49ee849 100644 --- a/v9/test/enum/test_enum_type.go +++ b/v10/test/enum/test_enum_type.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,8 +10,8 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) // Test enum diff --git a/v9/test/evolve-union/evolution.avsc b/v10/test/evolve-union/evolution.avsc similarity index 100% rename from v9/test/evolve-union/evolution.avsc rename to v10/test/evolve-union/evolution.avsc diff --git a/v9/test/default-union/evolution/union_null_string.go b/v10/test/evolve-union/evolution/union_null_string.go similarity index 94% rename from v9/test/default-union/evolution/union_null_string.go rename to v10/test/evolve-union/evolution/union_null_string.go index f34a8df2..e9f07e77 100644 --- a/v9/test/default-union/evolution/union_null_string.go +++ b/v10/test/evolve-union/evolution/union_null_string.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullStringTypeEnum int diff --git a/v9/test/evolve-union/evolution/union_record.go b/v10/test/evolve-union/evolution/union_record.go similarity index 94% rename from v9/test/evolve-union/evolution/union_record.go rename to v10/test/evolve-union/evolution/union_record.go index bc92d73a..0e80467c 100644 --- a/v9/test/evolve-union/evolution/union_record.go +++ b/v10/test/evolve-union/evolution/union_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/evolve-union/evolution/union_record_container.go b/v10/test/evolve-union/evolution/union_record_container.go similarity index 80% rename from v9/test/evolve-union/evolution/union_record_container.go rename to v10/test/evolve-union/evolution/union_record_container.go index ac33f230..83f5ba3a 100644 --- a/v9/test/evolve-union/evolution/union_record_container.go +++ b/v10/test/evolve-union/evolution/union_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewUnionRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/evolve-union/generate.go b/v10/test/evolve-union/generate.go similarity index 100% rename from v9/test/evolve-union/generate.go rename to v10/test/evolve-union/generate.go diff --git a/v9/test/evolve-union/schema.avsc b/v10/test/evolve-union/schema.avsc similarity index 100% rename from v9/test/evolve-union/schema.avsc rename to v10/test/evolve-union/schema.avsc diff --git a/v9/test/evolve-union/schema_test.go b/v10/test/evolve-union/schema_test.go similarity index 90% rename from v9/test/evolve-union/schema_test.go rename to v10/test/evolve-union/schema_test.go index bdab692d..67e4ff85 100644 --- a/v9/test/evolve-union/schema_test.go +++ b/v10/test/evolve-union/schema_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - evolution "github.com/actgardner/gogen-avro/v9/test/evolve-union/evolution" + evolution "github.com/actgardner/gogen-avro/v10/test/evolve-union/evolution" "github.com/stretchr/testify/assert" ) diff --git a/v9/test/maps-union/union_null_int.go b/v10/test/evolve-union/union_null_int.go similarity index 94% rename from v9/test/maps-union/union_null_int.go rename to v10/test/evolve-union/union_null_int.go index af13f806..0a4c92bd 100644 --- a/v9/test/maps-union/union_null_int.go +++ b/v10/test/evolve-union/union_null_int.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullIntTypeEnum int diff --git a/v9/test/namespace-short/union_null_string.go b/v10/test/evolve-union/union_null_string.go similarity index 94% rename from v9/test/namespace-short/union_null_string.go rename to v10/test/evolve-union/union_null_string.go index 159d7352..a5e15e18 100644 --- a/v9/test/namespace-short/union_null_string.go +++ b/v10/test/evolve-union/union_null_string.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullStringTypeEnum int diff --git a/v9/test/evolve-union/union_record.go b/v10/test/evolve-union/union_record.go similarity index 95% rename from v9/test/evolve-union/union_record.go rename to v10/test/evolve-union/union_record.go index da48e4de..291dd6be 100644 --- a/v9/test/evolve-union/union_record.go +++ b/v10/test/evolve-union/union_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/evolve-union/union_record_container.go b/v10/test/evolve-union/union_record_container.go similarity index 80% rename from v9/test/evolve-union/union_record_container.go rename to v10/test/evolve-union/union_record_container.go index afb64f35..8ad86e79 100644 --- a/v9/test/evolve-union/union_record_container.go +++ b/v10/test/evolve-union/union_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewUnionRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/fixed/fixed_test_record.go b/v10/test/fixed/fixed_test_record.go similarity index 95% rename from v9/test/fixed/fixed_test_record.go rename to v10/test/fixed/fixed_test_record.go index 8cb696e6..15095a39 100644 --- a/v9/test/fixed/fixed_test_record.go +++ b/v10/test/fixed/fixed_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/fixed/fixed_test_record_container.go b/v10/test/fixed/fixed_test_record_container.go similarity index 81% rename from v9/test/fixed/fixed_test_record_container.go rename to v10/test/fixed/fixed_test_record_container.go index e085b4c2..4631f50a 100644 --- a/v9/test/fixed/fixed_test_record_container.go +++ b/v10/test/fixed/fixed_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewFixedTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/fixed/fixtures.json b/v10/test/fixed/fixtures.json similarity index 100% rename from v9/test/fixed/fixtures.json rename to v10/test/fixed/fixtures.json diff --git a/v9/test/fixed/generate.go b/v10/test/fixed/generate.go similarity index 100% rename from v9/test/fixed/generate.go rename to v10/test/fixed/generate.go diff --git a/v9/test/fixed/schema.avsc b/v10/test/fixed/schema.avsc similarity index 100% rename from v9/test/fixed/schema.avsc rename to v10/test/fixed/schema.avsc diff --git a/v9/test/fixed/schema_test.go b/v10/test/fixed/schema_test.go similarity index 75% rename from v9/test/fixed/schema_test.go rename to v10/test/fixed/schema_test.go index 0db1d67c..3d77e088 100644 --- a/v9/test/fixed/schema_test.go +++ b/v10/test/fixed/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/fixed/test_fixed_type.go b/v10/test/fixed/test_fixed_type.go similarity index 92% rename from v9/test/fixed/test_fixed_type.go rename to v10/test/fixed/test_fixed_type.go index 47936e0d..de604bea 100644 --- a/v9/test/fixed/test_fixed_type.go +++ b/v10/test/fixed/test_fixed_type.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -9,8 +9,8 @@ import ( "encoding/json" "io" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeTestFixedType(r TestFixedType, w io.Writer) error { diff --git a/v9/test/go-struct-tags/generate.go b/v10/test/go-struct-tags/generate.go similarity index 100% rename from v9/test/go-struct-tags/generate.go rename to v10/test/go-struct-tags/generate.go diff --git a/v9/test/go-struct-tags/schema.avsc b/v10/test/go-struct-tags/schema.avsc similarity index 100% rename from v9/test/go-struct-tags/schema.avsc rename to v10/test/go-struct-tags/schema.avsc diff --git a/v9/test/go-struct-tags/schema_test.go b/v10/test/go-struct-tags/schema_test.go similarity index 100% rename from v9/test/go-struct-tags/schema_test.go rename to v10/test/go-struct-tags/schema_test.go diff --git a/v9/test/go-struct-tags/struct_tag.go b/v10/test/go-struct-tags/struct_tag.go similarity index 94% rename from v9/test/go-struct-tags/struct_tag.go rename to v10/test/go-struct-tags/struct_tag.go index d54e1dd7..35d76020 100644 --- a/v9/test/go-struct-tags/struct_tag.go +++ b/v10/test/go-struct-tags/struct_tag.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/go-struct-tags/struct_tag_container.go b/v10/test/go-struct-tags/struct_tag_container.go similarity index 80% rename from v9/test/go-struct-tags/struct_tag_container.go rename to v10/test/go-struct-tags/struct_tag_container.go index a33947ff..a039e34d 100644 --- a/v9/test/go-struct-tags/struct_tag_container.go +++ b/v10/test/go-struct-tags/struct_tag_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewStructTagWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/lax-names/array_union_record_foo_record_bar.go b/v10/test/lax-names/array_union_record_foo_record_bar.go similarity index 92% rename from v9/test/lax-names/array_union_record_foo_record_bar.go rename to v10/test/lax-names/array_union_record_foo_record_bar.go index c5bae456..817a3e5d 100644 --- a/v9/test/lax-names/array_union_record_foo_record_bar.go +++ b/v10/test/lax-names/array_union_record_foo_record_bar.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeArrayUnionRecordFooRecordBar(r []UnionRecordFooRecordBar, w io.Writer) error { diff --git a/v9/test/lax-names/generate.go b/v10/test/lax-names/generate.go similarity index 100% rename from v9/test/lax-names/generate.go rename to v10/test/lax-names/generate.go diff --git a/v9/test/lax-names/record_bar.go b/v10/test/lax-names/record_bar.go similarity index 93% rename from v9/test/lax-names/record_bar.go rename to v10/test/lax-names/record_bar.go index 902b55fb..5b3dd1d7 100644 --- a/v9/test/lax-names/record_bar.go +++ b/v10/test/lax-names/record_bar.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/lax-names/record_bar_container.go b/v10/test/lax-names/record_bar_container.go similarity index 80% rename from v9/test/lax-names/record_bar_container.go rename to v10/test/lax-names/record_bar_container.go index 9557ba0e..1220a518 100644 --- a/v9/test/lax-names/record_bar_container.go +++ b/v10/test/lax-names/record_bar_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewRecordBarWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/lax-names/record_foo.go b/v10/test/lax-names/record_foo.go similarity index 93% rename from v9/test/lax-names/record_foo.go rename to v10/test/lax-names/record_foo.go index be25bd9e..222b2932 100644 --- a/v9/test/lax-names/record_foo.go +++ b/v10/test/lax-names/record_foo.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/lax-names/record_foo_container.go b/v10/test/lax-names/record_foo_container.go similarity index 80% rename from v9/test/lax-names/record_foo_container.go rename to v10/test/lax-names/record_foo_container.go index fe8bb169..b934cfa6 100644 --- a/v9/test/lax-names/record_foo_container.go +++ b/v10/test/lax-names/record_foo_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewRecordFooWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/lax-names/record_schema.go b/v10/test/lax-names/record_schema.go similarity index 94% rename from v9/test/lax-names/record_schema.go rename to v10/test/lax-names/record_schema.go index f5440178..fcd5d9b3 100644 --- a/v9/test/lax-names/record_schema.go +++ b/v10/test/lax-names/record_schema.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/lax-names/record_schema_container.go b/v10/test/lax-names/record_schema_container.go similarity index 80% rename from v9/test/lax-names/record_schema_container.go rename to v10/test/lax-names/record_schema_container.go index 2ae61148..2047c674 100644 --- a/v9/test/lax-names/record_schema_container.go +++ b/v10/test/lax-names/record_schema_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewRecordSchemaWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/lax-names/schema.avsc b/v10/test/lax-names/schema.avsc similarity index 100% rename from v9/test/lax-names/schema.avsc rename to v10/test/lax-names/schema.avsc diff --git a/v9/test/lax-names/schema_test.go b/v10/test/lax-names/schema_test.go similarity index 92% rename from v9/test/lax-names/schema_test.go rename to v10/test/lax-names/schema_test.go index 979a478f..7a975f26 100644 --- a/v9/test/lax-names/schema_test.go +++ b/v10/test/lax-names/schema_test.go @@ -3,7 +3,7 @@ package avro import ( "testing" - "github.com/actgardner/gogen-avro/v9/compiler" + "github.com/actgardner/gogen-avro/v10/compiler" "github.com/stretchr/testify/assert" ) diff --git a/v9/test/lax-names/union_record_foo_record_bar.go b/v10/test/lax-names/union_record_foo_record_bar.go similarity index 95% rename from v9/test/lax-names/union_record_foo_record_bar.go rename to v10/test/lax-names/union_record_foo_record_bar.go index 924fce22..8994c746 100644 --- a/v9/test/lax-names/union_record_foo_record_bar.go +++ b/v10/test/lax-names/union_record_foo_record_bar.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionRecordFooRecordBarTypeEnum int diff --git a/v9/test/maps-union/fixtures.json b/v10/test/maps-union/fixtures.json similarity index 100% rename from v9/test/maps-union/fixtures.json rename to v10/test/maps-union/fixtures.json diff --git a/v9/test/maps-union/generate.go b/v10/test/maps-union/generate.go similarity index 100% rename from v9/test/maps-union/generate.go rename to v10/test/maps-union/generate.go diff --git a/v9/test/maps-union/map_test_record.go b/v10/test/maps-union/map_test_record.go similarity index 94% rename from v9/test/maps-union/map_test_record.go rename to v10/test/maps-union/map_test_record.go index 70817807..1d944ffb 100644 --- a/v9/test/maps-union/map_test_record.go +++ b/v10/test/maps-union/map_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/maps-union/map_test_record_container.go b/v10/test/maps-union/map_test_record_container.go similarity index 81% rename from v9/test/maps-union/map_test_record_container.go rename to v10/test/maps-union/map_test_record_container.go index 46e8d46f..6ec80e97 100644 --- a/v9/test/maps-union/map_test_record_container.go +++ b/v10/test/maps-union/map_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewMapTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/maps-union/map_union_null_int.go b/v10/test/maps-union/map_union_null_int.go similarity index 92% rename from v9/test/maps-union/map_union_null_int.go rename to v10/test/maps-union/map_union_null_int.go index f17278b2..74153254 100644 --- a/v9/test/maps-union/map_union_null_int.go +++ b/v10/test/maps-union/map_union_null_int.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -6,8 +6,8 @@ package avro import ( - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" "io" ) diff --git a/v9/test/maps-union/schema.avsc b/v10/test/maps-union/schema.avsc similarity index 100% rename from v9/test/maps-union/schema.avsc rename to v10/test/maps-union/schema.avsc diff --git a/v9/test/maps-union/schema_test.go b/v10/test/maps-union/schema_test.go similarity index 75% rename from v9/test/maps-union/schema_test.go rename to v10/test/maps-union/schema_test.go index 49240bb7..7a381af1 100644 --- a/v9/test/maps-union/schema_test.go +++ b/v10/test/maps-union/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/evolve-union/union_null_int.go b/v10/test/maps-union/union_null_int.go similarity index 94% rename from v9/test/evolve-union/union_null_int.go rename to v10/test/maps-union/union_null_int.go index af13f806..0a4c92bd 100644 --- a/v9/test/evolve-union/union_null_int.go +++ b/v10/test/maps-union/union_null_int.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullIntTypeEnum int diff --git a/v9/test/maps/bytes.go b/v10/test/maps/bytes.go similarity index 91% rename from v9/test/maps/bytes.go rename to v10/test/maps/bytes.go index 79bda531..b603708d 100644 --- a/v9/test/maps/bytes.go +++ b/v10/test/maps/bytes.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "encoding/json" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type Bytes []byte diff --git a/v9/test/maps/fixtures.json b/v10/test/maps/fixtures.json similarity index 100% rename from v9/test/maps/fixtures.json rename to v10/test/maps/fixtures.json diff --git a/v9/test/maps/generate.go b/v10/test/maps/generate.go similarity index 100% rename from v9/test/maps/generate.go rename to v10/test/maps/generate.go diff --git a/v9/test/maps/map_bool.go b/v10/test/maps/map_bool.go similarity index 92% rename from v9/test/maps/map_bool.go rename to v10/test/maps/map_bool.go index 509d6a06..5fe673bf 100644 --- a/v9/test/maps/map_bool.go +++ b/v10/test/maps/map_bool.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -6,8 +6,8 @@ package avro import ( - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" "io" ) diff --git a/v9/test/maps/map_bytes.go b/v10/test/maps/map_bytes.go similarity index 92% rename from v9/test/maps/map_bytes.go rename to v10/test/maps/map_bytes.go index 2f84b6be..24834fe6 100644 --- a/v9/test/maps/map_bytes.go +++ b/v10/test/maps/map_bytes.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -6,8 +6,8 @@ package avro import ( - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" "io" ) diff --git a/v9/test/maps/map_double.go b/v10/test/maps/map_double.go similarity index 92% rename from v9/test/maps/map_double.go rename to v10/test/maps/map_double.go index 929be518..672ee605 100644 --- a/v9/test/maps/map_double.go +++ b/v10/test/maps/map_double.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -6,8 +6,8 @@ package avro import ( - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" "io" ) diff --git a/v9/test/maps/map_float.go b/v10/test/maps/map_float.go similarity index 92% rename from v9/test/maps/map_float.go rename to v10/test/maps/map_float.go index 459ebcf0..5f85ff44 100644 --- a/v9/test/maps/map_float.go +++ b/v10/test/maps/map_float.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -6,8 +6,8 @@ package avro import ( - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" "io" ) diff --git a/v9/test/maps/map_int.go b/v10/test/maps/map_int.go similarity index 92% rename from v9/test/maps/map_int.go rename to v10/test/maps/map_int.go index bcb55975..67c8c928 100644 --- a/v9/test/maps/map_int.go +++ b/v10/test/maps/map_int.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -6,8 +6,8 @@ package avro import ( - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" "io" ) diff --git a/v9/test/maps/map_long.go b/v10/test/maps/map_long.go similarity index 92% rename from v9/test/maps/map_long.go rename to v10/test/maps/map_long.go index f91119db..c230b4d8 100644 --- a/v9/test/maps/map_long.go +++ b/v10/test/maps/map_long.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -6,8 +6,8 @@ package avro import ( - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" "io" ) diff --git a/v9/test/maps/map_string.go b/v10/test/maps/map_string.go similarity index 92% rename from v9/test/maps/map_string.go rename to v10/test/maps/map_string.go index a37e526b..00cfc525 100644 --- a/v9/test/maps/map_string.go +++ b/v10/test/maps/map_string.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -6,8 +6,8 @@ package avro import ( - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" "io" ) diff --git a/v9/test/maps/map_test_record.go b/v10/test/maps/map_test_record.go similarity index 97% rename from v9/test/maps/map_test_record.go rename to v10/test/maps/map_test_record.go index 1ce7a892..6642e01a 100644 --- a/v9/test/maps/map_test_record.go +++ b/v10/test/maps/map_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/maps/map_test_record_container.go b/v10/test/maps/map_test_record_container.go similarity index 81% rename from v9/test/maps/map_test_record_container.go rename to v10/test/maps/map_test_record_container.go index 46e8d46f..6ec80e97 100644 --- a/v9/test/maps/map_test_record_container.go +++ b/v10/test/maps/map_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewMapTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/maps/schema.avsc b/v10/test/maps/schema.avsc similarity index 100% rename from v9/test/maps/schema.avsc rename to v10/test/maps/schema.avsc diff --git a/v9/test/maps/schema_test.go b/v10/test/maps/schema_test.go similarity index 75% rename from v9/test/maps/schema_test.go rename to v10/test/maps/schema_test.go index 49240bb7..7a381af1 100644 --- a/v9/test/maps/schema_test.go +++ b/v10/test/maps/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/name-conflict/bytes.go b/v10/test/name-conflict/bytes.go similarity index 94% rename from v9/test/name-conflict/bytes.go rename to v10/test/name-conflict/bytes.go index d97008ed..7461ee32 100644 --- a/v9/test/name-conflict/bytes.go +++ b/v10/test/name-conflict/bytes.go @@ -8,8 +8,8 @@ package avro import ( "encoding/json" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type Bytes []byte diff --git a/v9/test/name-conflict/evolution.json b/v10/test/name-conflict/evolution.json similarity index 100% rename from v9/test/name-conflict/evolution.json rename to v10/test/name-conflict/evolution.json diff --git a/v9/test/name-conflict/fixtures.json b/v10/test/name-conflict/fixtures.json similarity index 100% rename from v9/test/name-conflict/fixtures.json rename to v10/test/name-conflict/fixtures.json diff --git a/v9/test/name-conflict/generate.go b/v10/test/name-conflict/generate.go similarity index 100% rename from v9/test/name-conflict/generate.go rename to v10/test/name-conflict/generate.go diff --git a/v9/test/name-conflict/name_conflict_test_record.go b/v10/test/name-conflict/name_conflict_test_record.go similarity index 98% rename from v9/test/name-conflict/name_conflict_test_record.go rename to v10/test/name-conflict/name_conflict_test_record.go index 8076bcad..2ec7aec2 100644 --- a/v9/test/name-conflict/name_conflict_test_record.go +++ b/v10/test/name-conflict/name_conflict_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/name-conflict/name_conflict_test_record_container.go b/v10/test/name-conflict/name_conflict_test_record_container.go similarity index 82% rename from v9/test/name-conflict/name_conflict_test_record_container.go rename to v10/test/name-conflict/name_conflict_test_record_container.go index ef236ec7..8a44145c 100644 --- a/v9/test/name-conflict/name_conflict_test_record_container.go +++ b/v10/test/name-conflict/name_conflict_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewNameConflictTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/name-conflict/schema.avsc b/v10/test/name-conflict/schema.avsc similarity index 100% rename from v9/test/name-conflict/schema.avsc rename to v10/test/name-conflict/schema.avsc diff --git a/v9/test/name-conflict/schema_test.go b/v10/test/name-conflict/schema_test.go similarity index 76% rename from v9/test/name-conflict/schema_test.go rename to v10/test/name-conflict/schema_test.go index 335769ef..a5116ea9 100644 --- a/v9/test/name-conflict/schema_test.go +++ b/v10/test/name-conflict/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/namespace-full/bodyworks_data.go b/v10/test/namespace-full/bodyworks_data.go similarity index 96% rename from v9/test/namespace-full/bodyworks_data.go rename to v10/test/namespace-full/bodyworks_data.go index 7c0af7e3..8ffafe1b 100644 --- a/v9/test/namespace-full/bodyworks_data.go +++ b/v10/test/namespace-full/bodyworks_data.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/namespace-full/bodyworks_data_container.go b/v10/test/namespace-full/bodyworks_data_container.go similarity index 81% rename from v9/test/namespace-full/bodyworks_data_container.go rename to v10/test/namespace-full/bodyworks_data_container.go index 7fcc99ac..7962310a 100644 --- a/v9/test/namespace-full/bodyworks_data_container.go +++ b/v10/test/namespace-full/bodyworks_data_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewBodyworksDataWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/namespace-full/bodyworks_datatype_uuid.go b/v10/test/namespace-full/bodyworks_datatype_uuid.go similarity index 94% rename from v9/test/namespace-full/bodyworks_datatype_uuid.go rename to v10/test/namespace-full/bodyworks_datatype_uuid.go index 9e77f5a1..7bff1406 100644 --- a/v9/test/namespace-full/bodyworks_datatype_uuid.go +++ b/v10/test/namespace-full/bodyworks_datatype_uuid.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/namespace-full/bodyworks_datatype_uuid_container.go b/v10/test/namespace-full/bodyworks_datatype_uuid_container.go similarity index 82% rename from v9/test/namespace-full/bodyworks_datatype_uuid_container.go rename to v10/test/namespace-full/bodyworks_datatype_uuid_container.go index 5040b0be..8956401f 100644 --- a/v9/test/namespace-full/bodyworks_datatype_uuid_container.go +++ b/v10/test/namespace-full/bodyworks_datatype_uuid_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewBodyworksDatatypeUUIDWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/namespace-full/bodyworks_trace.go b/v10/test/namespace-full/bodyworks_trace.go similarity index 95% rename from v9/test/namespace-full/bodyworks_trace.go rename to v10/test/namespace-full/bodyworks_trace.go index 64b8a8b5..0740c618 100644 --- a/v9/test/namespace-full/bodyworks_trace.go +++ b/v10/test/namespace-full/bodyworks_trace.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/namespace-full/bodyworks_trace_container.go b/v10/test/namespace-full/bodyworks_trace_container.go similarity index 81% rename from v9/test/namespace-full/bodyworks_trace_container.go rename to v10/test/namespace-full/bodyworks_trace_container.go index 72a64c63..2fdd92eb 100644 --- a/v9/test/namespace-full/bodyworks_trace_container.go +++ b/v10/test/namespace-full/bodyworks_trace_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewBodyworksTraceWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/namespace-full/com_avro_test_sample.go b/v10/test/namespace-full/com_avro_test_sample.go similarity index 97% rename from v9/test/namespace-full/com_avro_test_sample.go rename to v10/test/namespace-full/com_avro_test_sample.go index 85ee0f27..2184d244 100644 --- a/v9/test/namespace-full/com_avro_test_sample.go +++ b/v10/test/namespace-full/com_avro_test_sample.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/namespace-full/com_avro_test_sample_container.go b/v10/test/namespace-full/com_avro_test_sample_container.go similarity index 81% rename from v9/test/namespace-full/com_avro_test_sample_container.go rename to v10/test/namespace-full/com_avro_test_sample_container.go index e9c71e09..cb169a9e 100644 --- a/v9/test/namespace-full/com_avro_test_sample_container.go +++ b/v10/test/namespace-full/com_avro_test_sample_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewComAvroTestSampleWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/namespace-full/fixtures.json b/v10/test/namespace-full/fixtures.json similarity index 100% rename from v9/test/namespace-full/fixtures.json rename to v10/test/namespace-full/fixtures.json diff --git a/v9/test/namespace-full/generate.go b/v10/test/namespace-full/generate.go similarity index 100% rename from v9/test/namespace-full/generate.go rename to v10/test/namespace-full/generate.go diff --git a/v9/test/namespace-full/headerworks_data.go b/v10/test/namespace-full/headerworks_data.go similarity index 96% rename from v9/test/namespace-full/headerworks_data.go rename to v10/test/namespace-full/headerworks_data.go index 09b74c3c..6f8ee0d2 100644 --- a/v9/test/namespace-full/headerworks_data.go +++ b/v10/test/namespace-full/headerworks_data.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/namespace-full/headerworks_data_container.go b/v10/test/namespace-full/headerworks_data_container.go similarity index 81% rename from v9/test/namespace-full/headerworks_data_container.go rename to v10/test/namespace-full/headerworks_data_container.go index aeac79e4..3d8aced4 100644 --- a/v9/test/namespace-full/headerworks_data_container.go +++ b/v10/test/namespace-full/headerworks_data_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewHeaderworksDataWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/namespace-full/headerworks_datatype_uuid.go b/v10/test/namespace-full/headerworks_datatype_uuid.go similarity index 95% rename from v9/test/namespace-full/headerworks_datatype_uuid.go rename to v10/test/namespace-full/headerworks_datatype_uuid.go index 9e2fcac8..b91dfe12 100644 --- a/v9/test/namespace-full/headerworks_datatype_uuid.go +++ b/v10/test/namespace-full/headerworks_datatype_uuid.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/namespace-full/headerworks_datatype_uuid_container.go b/v10/test/namespace-full/headerworks_datatype_uuid_container.go similarity index 82% rename from v9/test/namespace-full/headerworks_datatype_uuid_container.go rename to v10/test/namespace-full/headerworks_datatype_uuid_container.go index 7a08e0d3..71f93a19 100644 --- a/v9/test/namespace-full/headerworks_datatype_uuid_container.go +++ b/v10/test/namespace-full/headerworks_datatype_uuid_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewHeaderworksDatatypeUUIDWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/namespace-full/headerworks_trace.go b/v10/test/namespace-full/headerworks_trace.go similarity index 95% rename from v9/test/namespace-full/headerworks_trace.go rename to v10/test/namespace-full/headerworks_trace.go index 873acf40..ccb727e1 100644 --- a/v9/test/namespace-full/headerworks_trace.go +++ b/v10/test/namespace-full/headerworks_trace.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/namespace-full/headerworks_trace_container.go b/v10/test/namespace-full/headerworks_trace_container.go similarity index 81% rename from v9/test/namespace-full/headerworks_trace_container.go rename to v10/test/namespace-full/headerworks_trace_container.go index b0d97767..07debd27 100644 --- a/v9/test/namespace-full/headerworks_trace_container.go +++ b/v10/test/namespace-full/headerworks_trace_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewHeaderworksTraceWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/namespace-full/schema.avsc b/v10/test/namespace-full/schema.avsc similarity index 100% rename from v9/test/namespace-full/schema.avsc rename to v10/test/namespace-full/schema.avsc diff --git a/v9/test/namespace-full/schema_test.go b/v10/test/namespace-full/schema_test.go similarity index 76% rename from v9/test/namespace-full/schema_test.go rename to v10/test/namespace-full/schema_test.go index f572f487..7bbef060 100644 --- a/v9/test/namespace-full/schema_test.go +++ b/v10/test/namespace-full/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/namespace-full/union_null_bodyworks_data.go b/v10/test/namespace-full/union_null_bodyworks_data.go similarity index 96% rename from v9/test/namespace-full/union_null_bodyworks_data.go rename to v10/test/namespace-full/union_null_bodyworks_data.go index 8139c487..e6651f3f 100644 --- a/v9/test/namespace-full/union_null_bodyworks_data.go +++ b/v10/test/namespace-full/union_null_bodyworks_data.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullBodyworksDataTypeEnum int diff --git a/v9/test/namespace-full/union_null_bodyworks_datatype_uuid.go b/v10/test/namespace-full/union_null_bodyworks_datatype_uuid.go similarity index 95% rename from v9/test/namespace-full/union_null_bodyworks_datatype_uuid.go rename to v10/test/namespace-full/union_null_bodyworks_datatype_uuid.go index 5efc40ee..8aa8ece5 100644 --- a/v9/test/namespace-full/union_null_bodyworks_datatype_uuid.go +++ b/v10/test/namespace-full/union_null_bodyworks_datatype_uuid.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullBodyworksDatatypeUUIDTypeEnum int diff --git a/v9/test/namespace-full/union_null_bodyworks_trace.go b/v10/test/namespace-full/union_null_bodyworks_trace.go similarity index 95% rename from v9/test/namespace-full/union_null_bodyworks_trace.go rename to v10/test/namespace-full/union_null_bodyworks_trace.go index 9151a166..12283136 100644 --- a/v9/test/namespace-full/union_null_bodyworks_trace.go +++ b/v10/test/namespace-full/union_null_bodyworks_trace.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullBodyworksTraceTypeEnum int diff --git a/v9/test/namespace-full/union_null_headerworks_data.go b/v10/test/namespace-full/union_null_headerworks_data.go similarity index 96% rename from v9/test/namespace-full/union_null_headerworks_data.go rename to v10/test/namespace-full/union_null_headerworks_data.go index fc7e21d9..343181de 100644 --- a/v9/test/namespace-full/union_null_headerworks_data.go +++ b/v10/test/namespace-full/union_null_headerworks_data.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullHeaderworksDataTypeEnum int diff --git a/v9/test/namespace-full/union_null_headerworks_datatype_uuid.go b/v10/test/namespace-full/union_null_headerworks_datatype_uuid.go similarity index 95% rename from v9/test/namespace-full/union_null_headerworks_datatype_uuid.go rename to v10/test/namespace-full/union_null_headerworks_datatype_uuid.go index 50bcddee..81833e62 100644 --- a/v9/test/namespace-full/union_null_headerworks_datatype_uuid.go +++ b/v10/test/namespace-full/union_null_headerworks_datatype_uuid.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullHeaderworksDatatypeUUIDTypeEnum int diff --git a/v9/test/namespace-full/union_null_headerworks_trace.go b/v10/test/namespace-full/union_null_headerworks_trace.go similarity index 95% rename from v9/test/namespace-full/union_null_headerworks_trace.go rename to v10/test/namespace-full/union_null_headerworks_trace.go index 46261517..b662c1e1 100644 --- a/v9/test/namespace-full/union_null_headerworks_trace.go +++ b/v10/test/namespace-full/union_null_headerworks_trace.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullHeaderworksTraceTypeEnum int diff --git a/v9/test/union-string/union_null_string.go b/v10/test/namespace-full/union_null_string.go similarity index 94% rename from v9/test/union-string/union_null_string.go rename to v10/test/namespace-full/union_null_string.go index 159d7352..a5e15e18 100644 --- a/v9/test/union-string/union_null_string.go +++ b/v10/test/namespace-full/union_null_string.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullStringTypeEnum int diff --git a/v9/test/namespace-none/fixtures.json b/v10/test/namespace-none/fixtures.json similarity index 100% rename from v9/test/namespace-none/fixtures.json rename to v10/test/namespace-none/fixtures.json diff --git a/v9/test/namespace-short/bodyworks_data.go b/v10/test/namespace-short/bodyworks_data.go similarity index 96% rename from v9/test/namespace-short/bodyworks_data.go rename to v10/test/namespace-short/bodyworks_data.go index 74395d7f..55368883 100644 --- a/v9/test/namespace-short/bodyworks_data.go +++ b/v10/test/namespace-short/bodyworks_data.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/namespace-short/bodyworks_data_container.go b/v10/test/namespace-short/bodyworks_data_container.go similarity index 81% rename from v9/test/namespace-short/bodyworks_data_container.go rename to v10/test/namespace-short/bodyworks_data_container.go index 7fcc99ac..7962310a 100644 --- a/v9/test/namespace-short/bodyworks_data_container.go +++ b/v10/test/namespace-short/bodyworks_data_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewBodyworksDataWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/namespace-short/bodyworks_trace.go b/v10/test/namespace-short/bodyworks_trace.go similarity index 95% rename from v9/test/namespace-short/bodyworks_trace.go rename to v10/test/namespace-short/bodyworks_trace.go index 04e1849b..1dc920d6 100644 --- a/v9/test/namespace-short/bodyworks_trace.go +++ b/v10/test/namespace-short/bodyworks_trace.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/namespace-short/bodyworks_trace_container.go b/v10/test/namespace-short/bodyworks_trace_container.go similarity index 81% rename from v9/test/namespace-short/bodyworks_trace_container.go rename to v10/test/namespace-short/bodyworks_trace_container.go index 72a64c63..2fdd92eb 100644 --- a/v9/test/namespace-short/bodyworks_trace_container.go +++ b/v10/test/namespace-short/bodyworks_trace_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewBodyworksTraceWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/namespace-short/datatype_uuid.go b/v10/test/namespace-short/datatype_uuid.go similarity index 94% rename from v9/test/namespace-short/datatype_uuid.go rename to v10/test/namespace-short/datatype_uuid.go index 7a31ae94..fdd40b18 100644 --- a/v9/test/namespace-short/datatype_uuid.go +++ b/v10/test/namespace-short/datatype_uuid.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/namespace-short/datatype_uuid_container.go b/v10/test/namespace-short/datatype_uuid_container.go similarity index 80% rename from v9/test/namespace-short/datatype_uuid_container.go rename to v10/test/namespace-short/datatype_uuid_container.go index ed1e2d0a..122a9f22 100644 --- a/v9/test/namespace-short/datatype_uuid_container.go +++ b/v10/test/namespace-short/datatype_uuid_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewDatatypeUUIDWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/namespace-short/fixtures.json b/v10/test/namespace-short/fixtures.json similarity index 100% rename from v9/test/namespace-short/fixtures.json rename to v10/test/namespace-short/fixtures.json diff --git a/v9/test/namespace-short/generate.go b/v10/test/namespace-short/generate.go similarity index 100% rename from v9/test/namespace-short/generate.go rename to v10/test/namespace-short/generate.go diff --git a/v9/test/namespace-short/headerworks_data.go b/v10/test/namespace-short/headerworks_data.go similarity index 96% rename from v9/test/namespace-short/headerworks_data.go rename to v10/test/namespace-short/headerworks_data.go index 2208ac53..790cb4f4 100644 --- a/v9/test/namespace-short/headerworks_data.go +++ b/v10/test/namespace-short/headerworks_data.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/namespace-short/headerworks_data_container.go b/v10/test/namespace-short/headerworks_data_container.go similarity index 81% rename from v9/test/namespace-short/headerworks_data_container.go rename to v10/test/namespace-short/headerworks_data_container.go index aeac79e4..3d8aced4 100644 --- a/v9/test/namespace-short/headerworks_data_container.go +++ b/v10/test/namespace-short/headerworks_data_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewHeaderworksDataWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/namespace-short/headerworks_trace.go b/v10/test/namespace-short/headerworks_trace.go similarity index 95% rename from v9/test/namespace-short/headerworks_trace.go rename to v10/test/namespace-short/headerworks_trace.go index 9011b2bb..49309098 100644 --- a/v9/test/namespace-short/headerworks_trace.go +++ b/v10/test/namespace-short/headerworks_trace.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/namespace-short/headerworks_trace_container.go b/v10/test/namespace-short/headerworks_trace_container.go similarity index 81% rename from v9/test/namespace-short/headerworks_trace_container.go rename to v10/test/namespace-short/headerworks_trace_container.go index b0d97767..07debd27 100644 --- a/v9/test/namespace-short/headerworks_trace_container.go +++ b/v10/test/namespace-short/headerworks_trace_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewHeaderworksTraceWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/namespace-short/schema.avsc b/v10/test/namespace-short/schema.avsc similarity index 100% rename from v9/test/namespace-short/schema.avsc rename to v10/test/namespace-short/schema.avsc diff --git a/v9/test/namespace-short/schema_test.go b/v10/test/namespace-short/schema_test.go similarity index 75% rename from v9/test/namespace-short/schema_test.go rename to v10/test/namespace-short/schema_test.go index f00da091..cb2be61d 100644 --- a/v9/test/namespace-short/schema_test.go +++ b/v10/test/namespace-short/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/namespace-short/test_sample.go b/v10/test/namespace-short/test_sample.go similarity index 96% rename from v9/test/namespace-short/test_sample.go rename to v10/test/namespace-short/test_sample.go index 5a189549..665026af 100644 --- a/v9/test/namespace-short/test_sample.go +++ b/v10/test/namespace-short/test_sample.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/namespace-short/test_sample_container.go b/v10/test/namespace-short/test_sample_container.go similarity index 80% rename from v9/test/namespace-short/test_sample_container.go rename to v10/test/namespace-short/test_sample_container.go index 1e6861a1..35740d37 100644 --- a/v9/test/namespace-short/test_sample_container.go +++ b/v10/test/namespace-short/test_sample_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewTestSampleWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/namespace-short/union_null_bodyworks_data.go b/v10/test/namespace-short/union_null_bodyworks_data.go similarity index 96% rename from v9/test/namespace-short/union_null_bodyworks_data.go rename to v10/test/namespace-short/union_null_bodyworks_data.go index 8139c487..e6651f3f 100644 --- a/v9/test/namespace-short/union_null_bodyworks_data.go +++ b/v10/test/namespace-short/union_null_bodyworks_data.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullBodyworksDataTypeEnum int diff --git a/v9/test/namespace-short/union_null_bodyworks_trace.go b/v10/test/namespace-short/union_null_bodyworks_trace.go similarity index 95% rename from v9/test/namespace-short/union_null_bodyworks_trace.go rename to v10/test/namespace-short/union_null_bodyworks_trace.go index 9151a166..12283136 100644 --- a/v9/test/namespace-short/union_null_bodyworks_trace.go +++ b/v10/test/namespace-short/union_null_bodyworks_trace.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullBodyworksTraceTypeEnum int diff --git a/v9/test/namespace-short/union_null_datatype_uuid.go b/v10/test/namespace-short/union_null_datatype_uuid.go similarity index 95% rename from v9/test/namespace-short/union_null_datatype_uuid.go rename to v10/test/namespace-short/union_null_datatype_uuid.go index f934dbe4..7157886e 100644 --- a/v9/test/namespace-short/union_null_datatype_uuid.go +++ b/v10/test/namespace-short/union_null_datatype_uuid.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullDatatypeUUIDTypeEnum int diff --git a/v9/test/namespace-short/union_null_headerworks_data.go b/v10/test/namespace-short/union_null_headerworks_data.go similarity index 96% rename from v9/test/namespace-short/union_null_headerworks_data.go rename to v10/test/namespace-short/union_null_headerworks_data.go index fc7e21d9..343181de 100644 --- a/v9/test/namespace-short/union_null_headerworks_data.go +++ b/v10/test/namespace-short/union_null_headerworks_data.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullHeaderworksDataTypeEnum int diff --git a/v9/test/namespace-short/union_null_headerworks_trace.go b/v10/test/namespace-short/union_null_headerworks_trace.go similarity index 95% rename from v9/test/namespace-short/union_null_headerworks_trace.go rename to v10/test/namespace-short/union_null_headerworks_trace.go index 46261517..b662c1e1 100644 --- a/v9/test/namespace-short/union_null_headerworks_trace.go +++ b/v10/test/namespace-short/union_null_headerworks_trace.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullHeaderworksTraceTypeEnum int diff --git a/v9/test/evolve-union/union_null_string.go b/v10/test/namespace-short/union_null_string.go similarity index 94% rename from v9/test/evolve-union/union_null_string.go rename to v10/test/namespace-short/union_null_string.go index 159d7352..a5e15e18 100644 --- a/v9/test/evolve-union/union_null_string.go +++ b/v10/test/namespace-short/union_null_string.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullStringTypeEnum int diff --git a/v9/test/nested-map-array/array_map_test_record.go b/v10/test/nested-map-array/array_map_test_record.go similarity index 92% rename from v9/test/nested-map-array/array_map_test_record.go rename to v10/test/nested-map-array/array_map_test_record.go index 34006d47..4a0e1cb6 100644 --- a/v9/test/nested-map-array/array_map_test_record.go +++ b/v10/test/nested-map-array/array_map_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeArrayMapTestRecord(r []MapTestRecord, w io.Writer) error { diff --git a/v9/test/nested-map-array/fixtures.json b/v10/test/nested-map-array/fixtures.json similarity index 100% rename from v9/test/nested-map-array/fixtures.json rename to v10/test/nested-map-array/fixtures.json diff --git a/v9/test/nested-map-array/generate.go b/v10/test/nested-map-array/generate.go similarity index 100% rename from v9/test/nested-map-array/generate.go rename to v10/test/nested-map-array/generate.go diff --git a/v9/test/nested-map-array/map_array_map_test_record.go b/v10/test/nested-map-array/map_array_map_test_record.go similarity index 93% rename from v9/test/nested-map-array/map_array_map_test_record.go rename to v10/test/nested-map-array/map_array_map_test_record.go index b8f54293..c1bb47b8 100644 --- a/v9/test/nested-map-array/map_array_map_test_record.go +++ b/v10/test/nested-map-array/map_array_map_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -6,8 +6,8 @@ package avro import ( - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" "io" ) diff --git a/v9/test/nested-map-array/map_test_record.go b/v10/test/nested-map-array/map_test_record.go similarity index 95% rename from v9/test/nested-map-array/map_test_record.go rename to v10/test/nested-map-array/map_test_record.go index a8bd7868..cb388b44 100644 --- a/v9/test/nested-map-array/map_test_record.go +++ b/v10/test/nested-map-array/map_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/nested-map-array/map_test_record_container.go b/v10/test/nested-map-array/map_test_record_container.go similarity index 81% rename from v9/test/nested-map-array/map_test_record_container.go rename to v10/test/nested-map-array/map_test_record_container.go index 46e8d46f..6ec80e97 100644 --- a/v9/test/nested-map-array/map_test_record_container.go +++ b/v10/test/nested-map-array/map_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewMapTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/nested-map-array/schema.avsc b/v10/test/nested-map-array/schema.avsc similarity index 100% rename from v9/test/nested-map-array/schema.avsc rename to v10/test/nested-map-array/schema.avsc diff --git a/v9/test/nested-map-array/schema_test.go b/v10/test/nested-map-array/schema_test.go similarity index 70% rename from v9/test/nested-map-array/schema_test.go rename to v10/test/nested-map-array/schema_test.go index 9cf8dc3d..21d83eef 100644 --- a/v9/test/nested-map-array/schema_test.go +++ b/v10/test/nested-map-array/schema_test.go @@ -4,12 +4,12 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) import ( - "github.com/actgardner/gogen-avro/v9/compiler" + "github.com/actgardner/gogen-avro/v10/compiler" ) func init() { diff --git a/v9/test/arrays/array_string.go b/v10/test/nested-maps/array_string.go similarity index 91% rename from v9/test/arrays/array_string.go rename to v10/test/nested-maps/array_string.go index 24da42ca..25b27c62 100644 --- a/v9/test/arrays/array_string.go +++ b/v10/test/nested-maps/array_string.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeArrayString(r []string, w io.Writer) error { diff --git a/v9/test/nested-maps/fixtures.json b/v10/test/nested-maps/fixtures.json similarity index 100% rename from v9/test/nested-maps/fixtures.json rename to v10/test/nested-maps/fixtures.json diff --git a/v9/test/nested-maps/generate.go b/v10/test/nested-maps/generate.go similarity index 100% rename from v9/test/nested-maps/generate.go rename to v10/test/nested-maps/generate.go diff --git a/v9/test/nested-maps/map_array_string.go b/v10/test/nested-maps/map_array_string.go similarity index 92% rename from v9/test/nested-maps/map_array_string.go rename to v10/test/nested-maps/map_array_string.go index 02442471..2792ff54 100644 --- a/v9/test/nested-maps/map_array_string.go +++ b/v10/test/nested-maps/map_array_string.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -6,8 +6,8 @@ package avro import ( - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" "io" ) diff --git a/v9/test/nested-maps/map_map_array_string.go b/v10/test/nested-maps/map_map_array_string.go similarity index 93% rename from v9/test/nested-maps/map_map_array_string.go rename to v10/test/nested-maps/map_map_array_string.go index 82af37c8..b4289f20 100644 --- a/v9/test/nested-maps/map_map_array_string.go +++ b/v10/test/nested-maps/map_map_array_string.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -6,8 +6,8 @@ package avro import ( - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" "io" ) diff --git a/v9/test/nested-maps/nested_map.go b/v10/test/nested-maps/nested_map.go similarity index 94% rename from v9/test/nested-maps/nested_map.go rename to v10/test/nested-maps/nested_map.go index ac71fb1f..10a64518 100644 --- a/v9/test/nested-maps/nested_map.go +++ b/v10/test/nested-maps/nested_map.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/nested-maps/nested_map_container.go b/v10/test/nested-maps/nested_map_container.go similarity index 80% rename from v9/test/nested-maps/nested_map_container.go rename to v10/test/nested-maps/nested_map_container.go index ec454ce9..c64fef98 100644 --- a/v9/test/nested-maps/nested_map_container.go +++ b/v10/test/nested-maps/nested_map_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewNestedMapWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/nested-maps/schema.avsc b/v10/test/nested-maps/schema.avsc similarity index 100% rename from v9/test/nested-maps/schema.avsc rename to v10/test/nested-maps/schema.avsc diff --git a/v9/test/nested-maps/schema_test.go b/v10/test/nested-maps/schema_test.go similarity index 74% rename from v9/test/nested-maps/schema_test.go rename to v10/test/nested-maps/schema_test.go index c4f965fa..d3a2756b 100644 --- a/v9/test/nested-maps/schema_test.go +++ b/v10/test/nested-maps/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/nested/bytes.go b/v10/test/nested/bytes.go similarity index 91% rename from v9/test/nested/bytes.go rename to v10/test/nested/bytes.go index 79bda531..b603708d 100644 --- a/v9/test/nested/bytes.go +++ b/v10/test/nested/bytes.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,8 +8,8 @@ package avro import ( "encoding/json" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type Bytes []byte diff --git a/v9/test/nested/fixtures.json b/v10/test/nested/fixtures.json similarity index 100% rename from v9/test/nested/fixtures.json rename to v10/test/nested/fixtures.json diff --git a/v9/test/nested/generate.go b/v10/test/nested/generate.go similarity index 100% rename from v9/test/nested/generate.go rename to v10/test/nested/generate.go diff --git a/v9/test/alias-record/nested_record.go b/v10/test/nested/nested_record.go similarity index 95% rename from v9/test/alias-record/nested_record.go rename to v10/test/nested/nested_record.go index 2555e91d..186bedfa 100644 --- a/v9/test/alias-record/nested_record.go +++ b/v10/test/nested/nested_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/alias-record/nested_record_container.go b/v10/test/nested/nested_record_container.go similarity index 80% rename from v9/test/alias-record/nested_record_container.go rename to v10/test/nested/nested_record_container.go index 08e79885..07135d0a 100644 --- a/v9/test/alias-record/nested_record_container.go +++ b/v10/test/nested/nested_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewNestedRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/nested/nested_test_record.go b/v10/test/nested/nested_test_record.go similarity index 95% rename from v9/test/nested/nested_test_record.go rename to v10/test/nested/nested_test_record.go index 7f789a81..489fa07e 100644 --- a/v9/test/nested/nested_test_record.go +++ b/v10/test/nested/nested_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/nested/nested_test_record_container.go b/v10/test/nested/nested_test_record_container.go similarity index 81% rename from v9/test/nested/nested_test_record_container.go rename to v10/test/nested/nested_test_record_container.go index 74bb9243..3a2092b2 100644 --- a/v9/test/nested/nested_test_record_container.go +++ b/v10/test/nested/nested_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewNestedTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/nested/number_record.go b/v10/test/nested/number_record.go similarity index 96% rename from v9/test/nested/number_record.go rename to v10/test/nested/number_record.go index 2f9da86a..a990ee7f 100644 --- a/v9/test/nested/number_record.go +++ b/v10/test/nested/number_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/nested/number_record_container.go b/v10/test/nested/number_record_container.go similarity index 80% rename from v9/test/nested/number_record_container.go rename to v10/test/nested/number_record_container.go index 9de2ff84..aabc66e3 100644 --- a/v9/test/nested/number_record_container.go +++ b/v10/test/nested/number_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewNumberRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/nested/schema.avsc b/v10/test/nested/schema.avsc similarity index 100% rename from v9/test/nested/schema.avsc rename to v10/test/nested/schema.avsc diff --git a/v9/test/nested/schema_test.go b/v10/test/nested/schema_test.go similarity index 76% rename from v9/test/nested/schema_test.go rename to v10/test/nested/schema_test.go index 63d0eb50..76fab98d 100644 --- a/v9/test/nested/schema_test.go +++ b/v10/test/nested/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v10/test/primitive/bytes.go b/v10/test/primitive/bytes.go new file mode 100644 index 00000000..b603708d --- /dev/null +++ b/v10/test/primitive/bytes.go @@ -0,0 +1,90 @@ +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. +/* + * SOURCE: + * schema.avsc + */ +package avro + +import ( + "encoding/json" + + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" +) + +type Bytes []byte + +func (b *Bytes) UnmarshalJSON(data []byte) error { + var s string + if err := json.Unmarshal(data, &s); err != nil { + return err + } + *b = util.DecodeByteString(s) + return nil +} + +func (b Bytes) MarshalJSON() ([]byte, error) { + return []byte(util.EncodeByteString(b)), nil +} + +type BytesWrapper struct { + Target *Bytes +} + +func (b BytesWrapper) SetBoolean(v bool) { + panic("Unable to assign bytes to bytes field") +} + +func (b BytesWrapper) SetInt(v int32) { + panic("Unable to assign int to bytes field") +} + +func (b BytesWrapper) SetLong(v int64) { + panic("Unable to assign long to bytes field") +} + +func (b BytesWrapper) SetFloat(v float32) { + panic("Unable to assign float to bytes field") +} + +func (b BytesWrapper) SetDouble(v float64) { + panic("Unable to assign double to bytes field") +} + +func (b BytesWrapper) SetUnionElem(v int64) { + panic("Unable to assign union elem to bytes field") +} + +func (b BytesWrapper) SetBytes(v []byte) { + *(b.Target) = v +} + +func (b BytesWrapper) SetString(v string) { + *(b.Target) = []byte(v) +} + +func (b BytesWrapper) Get(i int) types.Field { + panic("Unable to get field from bytes field") +} + +func (b BytesWrapper) SetDefault(i int) { + panic("Unable to set default on bytes field") +} + +func (b BytesWrapper) AppendMap(key string) types.Field { + panic("Unable to append map key to from bytes field") +} + +func (b BytesWrapper) AppendArray() types.Field { + panic("Unable to append array element to from bytes field") +} + +func (b BytesWrapper) NullField(int) { + panic("Unable to null field in bytes field") +} + +func (b BytesWrapper) HintSize(int) { + panic("Unable to hint size in bytes field") +} + +func (b BytesWrapper) Finalize() {} diff --git a/v9/test/primitive/evolution.avsc b/v10/test/primitive/evolution.avsc similarity index 100% rename from v9/test/primitive/evolution.avsc rename to v10/test/primitive/evolution.avsc diff --git a/v9/test/primitive/evolution.json b/v10/test/primitive/evolution.json similarity index 100% rename from v9/test/primitive/evolution.json rename to v10/test/primitive/evolution.json diff --git a/v9/test/alias-record/evolution/bytes.go b/v10/test/primitive/evolution/bytes.go similarity index 91% rename from v9/test/alias-record/evolution/bytes.go rename to v10/test/primitive/evolution/bytes.go index 2d0dba6e..24f0780d 100644 --- a/v9/test/alias-record/evolution/bytes.go +++ b/v10/test/primitive/evolution/bytes.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -8,8 +8,8 @@ package avro import ( "encoding/json" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type Bytes []byte diff --git a/v9/test/primitive/evolution/primitive_test_record.go b/v10/test/primitive/evolution/primitive_test_record.go similarity index 97% rename from v9/test/primitive/evolution/primitive_test_record.go rename to v10/test/primitive/evolution/primitive_test_record.go index f2aa3b44..2c543227 100644 --- a/v9/test/primitive/evolution/primitive_test_record.go +++ b/v10/test/primitive/evolution/primitive_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/primitive/evolution/primitive_test_record_container.go b/v10/test/primitive/evolution/primitive_test_record_container.go similarity index 82% rename from v9/test/primitive/evolution/primitive_test_record_container.go rename to v10/test/primitive/evolution/primitive_test_record_container.go index c4b4c13f..de70b5a8 100644 --- a/v9/test/primitive/evolution/primitive_test_record_container.go +++ b/v10/test/primitive/evolution/primitive_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewPrimitiveTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/primitive/fixtures.json b/v10/test/primitive/fixtures.json similarity index 100% rename from v9/test/primitive/fixtures.json rename to v10/test/primitive/fixtures.json diff --git a/v9/test/primitive/generate.go b/v10/test/primitive/generate.go similarity index 100% rename from v9/test/primitive/generate.go rename to v10/test/primitive/generate.go diff --git a/v9/test/primitive/primitive_test_record.go b/v10/test/primitive/primitive_test_record.go similarity index 97% rename from v9/test/primitive/primitive_test_record.go rename to v10/test/primitive/primitive_test_record.go index e4380c34..74e4bd88 100644 --- a/v9/test/primitive/primitive_test_record.go +++ b/v10/test/primitive/primitive_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/primitive/primitive_test_record_container.go b/v10/test/primitive/primitive_test_record_container.go similarity index 82% rename from v9/test/primitive/primitive_test_record_container.go rename to v10/test/primitive/primitive_test_record_container.go index 23d07ef9..b7f414ff 100644 --- a/v9/test/primitive/primitive_test_record_container.go +++ b/v10/test/primitive/primitive_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewPrimitiveTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/primitive/schema.avsc b/v10/test/primitive/schema.avsc similarity index 100% rename from v9/test/primitive/schema.avsc rename to v10/test/primitive/schema.avsc diff --git a/v9/test/primitive/schema_test.go b/v10/test/primitive/schema_test.go similarity index 79% rename from v9/test/primitive/schema_test.go rename to v10/test/primitive/schema_test.go index 4905326e..acbe6df4 100644 --- a/v9/test/primitive/schema_test.go +++ b/v10/test/primitive/schema_test.go @@ -4,9 +4,9 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" - evolution "github.com/actgardner/gogen-avro/v9/test/primitive/evolution" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" + evolution "github.com/actgardner/gogen-avro/v10/test/primitive/evolution" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/recursive-short/fixtures.json b/v10/test/recursive-short/fixtures.json similarity index 100% rename from v9/test/recursive-short/fixtures.json rename to v10/test/recursive-short/fixtures.json diff --git a/v9/test/recursive-short/generate.go b/v10/test/recursive-short/generate.go similarity index 100% rename from v9/test/recursive-short/generate.go rename to v10/test/recursive-short/generate.go diff --git a/v9/test/recursive-short/recursive_field_union.go b/v10/test/recursive-short/recursive_field_union.go similarity index 95% rename from v9/test/recursive-short/recursive_field_union.go rename to v10/test/recursive-short/recursive_field_union.go index 7d96766a..2e88e64d 100644 --- a/v9/test/recursive-short/recursive_field_union.go +++ b/v10/test/recursive-short/recursive_field_union.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type RecursiveFieldUnionTypeEnum int diff --git a/v9/test/recursive-short/recursive_union_test_record.go b/v10/test/recursive-short/recursive_union_test_record.go similarity index 95% rename from v9/test/recursive-short/recursive_union_test_record.go rename to v10/test/recursive-short/recursive_union_test_record.go index f8e74902..73679a4d 100644 --- a/v9/test/recursive-short/recursive_union_test_record.go +++ b/v10/test/recursive-short/recursive_union_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/recursive-short/recursive_union_test_record_container.go b/v10/test/recursive-short/recursive_union_test_record_container.go similarity index 82% rename from v9/test/recursive-short/recursive_union_test_record_container.go rename to v10/test/recursive-short/recursive_union_test_record_container.go index c8c76985..4193af81 100644 --- a/v9/test/recursive-short/recursive_union_test_record_container.go +++ b/v10/test/recursive-short/recursive_union_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewRecursiveUnionTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/recursive-short/schema.avsc b/v10/test/recursive-short/schema.avsc similarity index 100% rename from v9/test/recursive-short/schema.avsc rename to v10/test/recursive-short/schema.avsc diff --git a/v9/test/recursive-short/schema_test.go b/v10/test/recursive-short/schema_test.go similarity index 76% rename from v9/test/recursive-short/schema_test.go rename to v10/test/recursive-short/schema_test.go index 35b3a16f..d31f1316 100644 --- a/v9/test/recursive-short/schema_test.go +++ b/v10/test/recursive-short/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/recursive/fixtures.json b/v10/test/recursive/fixtures.json similarity index 100% rename from v9/test/recursive/fixtures.json rename to v10/test/recursive/fixtures.json diff --git a/v9/test/recursive/generate.go b/v10/test/recursive/generate.go similarity index 100% rename from v9/test/recursive/generate.go rename to v10/test/recursive/generate.go diff --git a/v9/test/recursive/recursive_union_test_record.go b/v10/test/recursive/recursive_union_test_record.go similarity index 95% rename from v9/test/recursive/recursive_union_test_record.go rename to v10/test/recursive/recursive_union_test_record.go index 0ab1e03e..b1229deb 100644 --- a/v9/test/recursive/recursive_union_test_record.go +++ b/v10/test/recursive/recursive_union_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/recursive/recursive_union_test_record_container.go b/v10/test/recursive/recursive_union_test_record_container.go similarity index 82% rename from v9/test/recursive/recursive_union_test_record_container.go rename to v10/test/recursive/recursive_union_test_record_container.go index c8c76985..4193af81 100644 --- a/v9/test/recursive/recursive_union_test_record_container.go +++ b/v10/test/recursive/recursive_union_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewRecursiveUnionTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/recursive/schema.avsc b/v10/test/recursive/schema.avsc similarity index 100% rename from v9/test/recursive/schema.avsc rename to v10/test/recursive/schema.avsc diff --git a/v9/test/recursive/schema_test.go b/v10/test/recursive/schema_test.go similarity index 76% rename from v9/test/recursive/schema_test.go rename to v10/test/recursive/schema_test.go index 35b3a16f..d31f1316 100644 --- a/v9/test/recursive/schema_test.go +++ b/v10/test/recursive/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/recursive/union_null_recursive_union_test_record.go b/v10/test/recursive/union_null_recursive_union_test_record.go similarity index 95% rename from v9/test/recursive/union_null_recursive_union_test_record.go rename to v10/test/recursive/union_null_recursive_union_test_record.go index d6e6f01c..d464cd5b 100644 --- a/v9/test/recursive/union_null_recursive_union_test_record.go +++ b/v10/test/recursive/union_null_recursive_union_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullRecursiveUnionTestRecordTypeEnum int diff --git a/v9/test/string/generate.go b/v10/test/string/generate.go similarity index 100% rename from v9/test/string/generate.go rename to v10/test/string/generate.go diff --git a/v9/test/string/schema.avsc b/v10/test/string/schema.avsc similarity index 100% rename from v9/test/string/schema.avsc rename to v10/test/string/schema.avsc diff --git a/v9/test/string/schema_test.go b/v10/test/string/schema_test.go similarity index 97% rename from v9/test/string/schema_test.go rename to v10/test/string/schema_test.go index 71600494..150e3e80 100644 --- a/v9/test/string/schema_test.go +++ b/v10/test/string/schema_test.go @@ -6,7 +6,7 @@ import ( "reflect" "testing" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/vm" "github.com/stretchr/testify/assert" ) diff --git a/v9/test/string/string_rec.go b/v10/test/string/string_rec.go similarity index 94% rename from v9/test/string/string_rec.go rename to v10/test/string/string_rec.go index 1a4e9c1d..7208e31c 100644 --- a/v9/test/string/string_rec.go +++ b/v10/test/string/string_rec.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/string/string_rec_container.go b/v10/test/string/string_rec_container.go similarity index 80% rename from v9/test/string/string_rec_container.go rename to v10/test/string/string_rec_container.go index 3288a9a4..ce08220c 100644 --- a/v9/test/string/string_rec_container.go +++ b/v10/test/string/string_rec_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewStringRecWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/union-root/event.go b/v10/test/union-root-short/event.go similarity index 95% rename from v9/test/union-root/event.go rename to v10/test/union-root-short/event.go index 654383bc..22f4e78e 100644 --- a/v9/test/union-root/event.go +++ b/v10/test/union-root-short/event.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/union-root-short/event_container.go b/v10/test/union-root-short/event_container.go similarity index 79% rename from v9/test/union-root-short/event_container.go rename to v10/test/union-root-short/event_container.go index e4586be0..33754e00 100644 --- a/v9/test/union-root-short/event_container.go +++ b/v10/test/union-root-short/event_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewEventWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/union-root-short/fixtures.json b/v10/test/union-root-short/fixtures.json similarity index 100% rename from v9/test/union-root-short/fixtures.json rename to v10/test/union-root-short/fixtures.json diff --git a/v9/test/union-root-short/generate.go b/v10/test/union-root-short/generate.go similarity index 100% rename from v9/test/union-root-short/generate.go rename to v10/test/union-root-short/generate.go diff --git a/v9/test/union-root-short/ip_address.go b/v10/test/union-root-short/ip_address.go similarity index 91% rename from v9/test/union-root-short/ip_address.go rename to v10/test/union-root-short/ip_address.go index c626ee0c..0f29915b 100644 --- a/v9/test/union-root-short/ip_address.go +++ b/v10/test/union-root-short/ip_address.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -9,8 +9,8 @@ import ( "encoding/json" "io" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeIp_address(r Ip_address, w io.Writer) error { diff --git a/v9/test/union-root-short/schema.avsc b/v10/test/union-root-short/schema.avsc similarity index 100% rename from v9/test/union-root-short/schema.avsc rename to v10/test/union-root-short/schema.avsc diff --git a/v9/test/union-root-short/schema_test.go b/v10/test/union-root-short/schema_test.go similarity index 76% rename from v9/test/union-root-short/schema_test.go rename to v10/test/union-root-short/schema_test.go index e6d2b721..3eea128c 100644 --- a/v9/test/union-root-short/schema_test.go +++ b/v10/test/union-root-short/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/union-root-short/union_ip_address_event.go b/v10/test/union-root-short/union_ip_address_event.go similarity index 95% rename from v9/test/union-root-short/union_ip_address_event.go rename to v10/test/union-root-short/union_ip_address_event.go index e82a2b22..1c5c8244 100644 --- a/v9/test/union-root-short/union_ip_address_event.go +++ b/v10/test/union-root-short/union_ip_address_event.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionIp_addressEventTypeEnum int diff --git a/v9/test/union-root-short/event.go b/v10/test/union-root/event.go similarity index 95% rename from v9/test/union-root-short/event.go rename to v10/test/union-root/event.go index 654383bc..22f4e78e 100644 --- a/v9/test/union-root-short/event.go +++ b/v10/test/union-root/event.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/avro-java-string/event_container.go b/v10/test/union-root/event_container.go similarity index 79% rename from v9/test/avro-java-string/event_container.go rename to v10/test/union-root/event_container.go index e4586be0..33754e00 100644 --- a/v9/test/avro-java-string/event_container.go +++ b/v10/test/union-root/event_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewEventWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/union-root/fixtures.json b/v10/test/union-root/fixtures.json similarity index 100% rename from v9/test/union-root/fixtures.json rename to v10/test/union-root/fixtures.json diff --git a/v9/test/union-root/generate.go b/v10/test/union-root/generate.go similarity index 100% rename from v9/test/union-root/generate.go rename to v10/test/union-root/generate.go diff --git a/v9/test/union-root/ip_address.go b/v10/test/union-root/ip_address.go similarity index 91% rename from v9/test/union-root/ip_address.go rename to v10/test/union-root/ip_address.go index c626ee0c..0f29915b 100644 --- a/v9/test/union-root/ip_address.go +++ b/v10/test/union-root/ip_address.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -9,8 +9,8 @@ import ( "encoding/json" "io" - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" ) func writeIp_address(r Ip_address, w io.Writer) error { diff --git a/v9/test/union-root/schema.avsc b/v10/test/union-root/schema.avsc similarity index 100% rename from v9/test/union-root/schema.avsc rename to v10/test/union-root/schema.avsc diff --git a/v9/test/union-root/schema_test.go b/v10/test/union-root/schema_test.go similarity index 76% rename from v9/test/union-root/schema_test.go rename to v10/test/union-root/schema_test.go index e6d2b721..3eea128c 100644 --- a/v9/test/union-root/schema_test.go +++ b/v10/test/union-root/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/union-root/union_ip_address_event.go b/v10/test/union-root/union_ip_address_event.go similarity index 95% rename from v9/test/union-root/union_ip_address_event.go rename to v10/test/union-root/union_ip_address_event.go index e82a2b22..1c5c8244 100644 --- a/v9/test/union-root/union_ip_address_event.go +++ b/v10/test/union-root/union_ip_address_event.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionIp_addressEventTypeEnum int diff --git a/v9/test/union-short/fixtures.json b/v10/test/union-short/fixtures.json similarity index 100% rename from v9/test/union-short/fixtures.json rename to v10/test/union-short/fixtures.json diff --git a/v9/test/union-short/generate.go b/v10/test/union-short/generate.go similarity index 100% rename from v9/test/union-short/generate.go rename to v10/test/union-short/generate.go diff --git a/v9/test/union-short/primitive_union_test_record.go b/v10/test/union-short/primitive_union_test_record.go similarity index 95% rename from v9/test/union-short/primitive_union_test_record.go rename to v10/test/union-short/primitive_union_test_record.go index 77282f4c..595c6484 100644 --- a/v9/test/union-short/primitive_union_test_record.go +++ b/v10/test/union-short/primitive_union_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/union/primitive_union_test_record_container.go b/v10/test/union-short/primitive_union_test_record_container.go similarity index 82% rename from v9/test/union/primitive_union_test_record_container.go rename to v10/test/union-short/primitive_union_test_record_container.go index 52547665..5e22f107 100644 --- a/v9/test/union/primitive_union_test_record_container.go +++ b/v10/test/union-short/primitive_union_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewPrimitiveUnionTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/union-short/schema.avsc b/v10/test/union-short/schema.avsc similarity index 100% rename from v9/test/union-short/schema.avsc rename to v10/test/union-short/schema.avsc diff --git a/v9/test/union/schema_test.go b/v10/test/union-short/schema_test.go similarity index 76% rename from v9/test/union/schema_test.go rename to v10/test/union-short/schema_test.go index fb55f454..88f4bbe6 100644 --- a/v9/test/union/schema_test.go +++ b/v10/test/union-short/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/union-short/union_int_long_float_double_string_bool_null.go b/v10/test/union-short/union_int_long_float_double_string_bool_null.go similarity index 97% rename from v9/test/union-short/union_int_long_float_double_string_bool_null.go rename to v10/test/union-short/union_int_long_float_double_string_bool_null.go index 02c5756a..cdd0d17d 100644 --- a/v9/test/union-short/union_int_long_float_double_string_bool_null.go +++ b/v10/test/union-short/union_int_long_float_double_string_bool_null.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionIntLongFloatDoubleStringBoolNullTypeEnum int diff --git a/v10/test/union-string-bytes/bytes.go b/v10/test/union-string-bytes/bytes.go new file mode 100644 index 00000000..b603708d --- /dev/null +++ b/v10/test/union-string-bytes/bytes.go @@ -0,0 +1,90 @@ +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. +/* + * SOURCE: + * schema.avsc + */ +package avro + +import ( + "encoding/json" + + "github.com/actgardner/gogen-avro/v10/util" + "github.com/actgardner/gogen-avro/v10/vm/types" +) + +type Bytes []byte + +func (b *Bytes) UnmarshalJSON(data []byte) error { + var s string + if err := json.Unmarshal(data, &s); err != nil { + return err + } + *b = util.DecodeByteString(s) + return nil +} + +func (b Bytes) MarshalJSON() ([]byte, error) { + return []byte(util.EncodeByteString(b)), nil +} + +type BytesWrapper struct { + Target *Bytes +} + +func (b BytesWrapper) SetBoolean(v bool) { + panic("Unable to assign bytes to bytes field") +} + +func (b BytesWrapper) SetInt(v int32) { + panic("Unable to assign int to bytes field") +} + +func (b BytesWrapper) SetLong(v int64) { + panic("Unable to assign long to bytes field") +} + +func (b BytesWrapper) SetFloat(v float32) { + panic("Unable to assign float to bytes field") +} + +func (b BytesWrapper) SetDouble(v float64) { + panic("Unable to assign double to bytes field") +} + +func (b BytesWrapper) SetUnionElem(v int64) { + panic("Unable to assign union elem to bytes field") +} + +func (b BytesWrapper) SetBytes(v []byte) { + *(b.Target) = v +} + +func (b BytesWrapper) SetString(v string) { + *(b.Target) = []byte(v) +} + +func (b BytesWrapper) Get(i int) types.Field { + panic("Unable to get field from bytes field") +} + +func (b BytesWrapper) SetDefault(i int) { + panic("Unable to set default on bytes field") +} + +func (b BytesWrapper) AppendMap(key string) types.Field { + panic("Unable to append map key to from bytes field") +} + +func (b BytesWrapper) AppendArray() types.Field { + panic("Unable to append array element to from bytes field") +} + +func (b BytesWrapper) NullField(int) { + panic("Unable to null field in bytes field") +} + +func (b BytesWrapper) HintSize(int) { + panic("Unable to hint size in bytes field") +} + +func (b BytesWrapper) Finalize() {} diff --git a/v9/test/union-string-bytes/fixtures.json b/v10/test/union-string-bytes/fixtures.json similarity index 100% rename from v9/test/union-string-bytes/fixtures.json rename to v10/test/union-string-bytes/fixtures.json diff --git a/v9/test/union-string-bytes/generate.go b/v10/test/union-string-bytes/generate.go similarity index 100% rename from v9/test/union-string-bytes/generate.go rename to v10/test/union-string-bytes/generate.go diff --git a/v9/test/union-string-bytes/primitive_union_test_record.go b/v10/test/union-string-bytes/primitive_union_test_record.go similarity index 95% rename from v9/test/union-string-bytes/primitive_union_test_record.go rename to v10/test/union-string-bytes/primitive_union_test_record.go index 206376cf..e9395b46 100644 --- a/v9/test/union-string-bytes/primitive_union_test_record.go +++ b/v10/test/union-string-bytes/primitive_union_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/union-short/primitive_union_test_record_container.go b/v10/test/union-string-bytes/primitive_union_test_record_container.go similarity index 82% rename from v9/test/union-short/primitive_union_test_record_container.go rename to v10/test/union-string-bytes/primitive_union_test_record_container.go index 52547665..5e22f107 100644 --- a/v9/test/union-short/primitive_union_test_record_container.go +++ b/v10/test/union-string-bytes/primitive_union_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewPrimitiveUnionTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/union-string-bytes/record1.go b/v10/test/union-string-bytes/record1.go similarity index 93% rename from v9/test/union-string-bytes/record1.go rename to v10/test/union-string-bytes/record1.go index 7a2f92bb..2c17a72e 100644 --- a/v9/test/union-string-bytes/record1.go +++ b/v10/test/union-string-bytes/record1.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/union-string-bytes/record1_container.go b/v10/test/union-string-bytes/record1_container.go similarity index 80% rename from v9/test/union-string-bytes/record1_container.go rename to v10/test/union-string-bytes/record1_container.go index 9ff0d38f..7972c2a7 100644 --- a/v9/test/union-string-bytes/record1_container.go +++ b/v10/test/union-string-bytes/record1_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewRecord1Writer(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/union-string-bytes/record2.go b/v10/test/union-string-bytes/record2.go similarity index 93% rename from v9/test/union-string-bytes/record2.go rename to v10/test/union-string-bytes/record2.go index 88e9efc0..6743a6fc 100644 --- a/v9/test/union-string-bytes/record2.go +++ b/v10/test/union-string-bytes/record2.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/union-string-bytes/record2_container.go b/v10/test/union-string-bytes/record2_container.go similarity index 80% rename from v9/test/union-string-bytes/record2_container.go rename to v10/test/union-string-bytes/record2_container.go index dbf61027..369ea7d7 100644 --- a/v9/test/union-string-bytes/record2_container.go +++ b/v10/test/union-string-bytes/record2_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewRecord2Writer(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/union-string-bytes/schema.avsc b/v10/test/union-string-bytes/schema.avsc similarity index 100% rename from v9/test/union-string-bytes/schema.avsc rename to v10/test/union-string-bytes/schema.avsc diff --git a/v9/test/union-short/schema_test.go b/v10/test/union-string-bytes/schema_test.go similarity index 76% rename from v9/test/union-short/schema_test.go rename to v10/test/union-string-bytes/schema_test.go index fb55f454..88f4bbe6 100644 --- a/v9/test/union-short/schema_test.go +++ b/v10/test/union-string-bytes/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/union-string-bytes/union_bytes_string_record1_record2.go b/v10/test/union-string-bytes/union_bytes_string_record1_record2.go similarity index 96% rename from v9/test/union-string-bytes/union_bytes_string_record1_record2.go rename to v10/test/union-string-bytes/union_bytes_string_record1_record2.go index 283c16eb..f014d7c5 100644 --- a/v9/test/union-string-bytes/union_bytes_string_record1_record2.go +++ b/v10/test/union-string-bytes/union_bytes_string_record1_record2.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionBytesStringRecord1Record2TypeEnum int diff --git a/v9/test/union-string/fixtures.json b/v10/test/union-string/fixtures.json similarity index 100% rename from v9/test/union-string/fixtures.json rename to v10/test/union-string/fixtures.json diff --git a/v9/test/union-string/generate.go b/v10/test/union-string/generate.go similarity index 100% rename from v9/test/union-string/generate.go rename to v10/test/union-string/generate.go diff --git a/v9/test/union-string/record_v1.go b/v10/test/union-string/record_v1.go similarity index 94% rename from v9/test/union-string/record_v1.go rename to v10/test/union-string/record_v1.go index 6b01590c..57517dc6 100644 --- a/v9/test/union-string/record_v1.go +++ b/v10/test/union-string/record_v1.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/union-string/record_v1_container.go b/v10/test/union-string/record_v1_container.go similarity index 80% rename from v9/test/union-string/record_v1_container.go rename to v10/test/union-string/record_v1_container.go index 13e9798c..528dae63 100644 --- a/v9/test/union-string/record_v1_container.go +++ b/v10/test/union-string/record_v1_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewRecord_v1Writer(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/union-string/schema.avsc b/v10/test/union-string/schema.avsc similarity index 100% rename from v9/test/union-string/schema.avsc rename to v10/test/union-string/schema.avsc diff --git a/v9/test/union-string/schema_test.go b/v10/test/union-string/schema_test.go similarity index 75% rename from v9/test/union-string/schema_test.go rename to v10/test/union-string/schema_test.go index 827cda56..2546a885 100644 --- a/v9/test/union-string/schema_test.go +++ b/v10/test/union-string/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/namespace-full/union_null_string.go b/v10/test/union-string/union_null_string.go similarity index 94% rename from v9/test/namespace-full/union_null_string.go rename to v10/test/union-string/union_null_string.go index 159d7352..a5e15e18 100644 --- a/v9/test/namespace-full/union_null_string.go +++ b/v10/test/union-string/union_null_string.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionNullStringTypeEnum int diff --git a/v9/test/union-string/union_string_null.go b/v10/test/union-string/union_string_null.go similarity index 94% rename from v9/test/union-string/union_string_null.go rename to v10/test/union-string/union_string_null.go index d1f5b931..e5ba54f0 100644 --- a/v9/test/union-string/union_string_null.go +++ b/v10/test/union-string/union_string_null.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionStringNullTypeEnum int diff --git a/v9/test/union/evolution.avsc b/v10/test/union/evolution.avsc similarity index 100% rename from v9/test/union/evolution.avsc rename to v10/test/union/evolution.avsc diff --git a/v9/test/union/evolution/primitive_union_test_record.go b/v10/test/union/evolution/primitive_union_test_record.go similarity index 95% rename from v9/test/union/evolution/primitive_union_test_record.go rename to v10/test/union/evolution/primitive_union_test_record.go index 4a1e9b1a..a67bab0b 100644 --- a/v9/test/union/evolution/primitive_union_test_record.go +++ b/v10/test/union/evolution/primitive_union_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/union/evolution/primitive_union_test_record_container.go b/v10/test/union/evolution/primitive_union_test_record_container.go similarity index 82% rename from v9/test/union/evolution/primitive_union_test_record_container.go rename to v10/test/union/evolution/primitive_union_test_record_container.go index a16fe046..e28f741a 100644 --- a/v9/test/union/evolution/primitive_union_test_record_container.go +++ b/v10/test/union/evolution/primitive_union_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewPrimitiveUnionTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/union/evolution/union_string_long_int_float_double_null_bool.go b/v10/test/union/evolution/union_string_long_int_float_double_null_bool.go similarity index 97% rename from v9/test/union/evolution/union_string_long_int_float_double_null_bool.go rename to v10/test/union/evolution/union_string_long_int_float_double_null_bool.go index b1266ad1..b03282bb 100644 --- a/v9/test/union/evolution/union_string_long_int_float_double_null_bool.go +++ b/v10/test/union/evolution/union_string_long_int_float_double_null_bool.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * evolution.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionStringLongIntFloatDoubleNullBoolTypeEnum int diff --git a/v9/test/union/fixtures.json b/v10/test/union/fixtures.json similarity index 100% rename from v9/test/union/fixtures.json rename to v10/test/union/fixtures.json diff --git a/v9/test/union/generate.go b/v10/test/union/generate.go similarity index 100% rename from v9/test/union/generate.go rename to v10/test/union/generate.go diff --git a/v9/test/union/primitive_union_test_record.go b/v10/test/union/primitive_union_test_record.go similarity index 95% rename from v9/test/union/primitive_union_test_record.go rename to v10/test/union/primitive_union_test_record.go index aa2f7181..e5d8a3d2 100644 --- a/v9/test/union/primitive_union_test_record.go +++ b/v10/test/union/primitive_union_test_record.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) var _ = fmt.Printf diff --git a/v9/test/union-string-bytes/primitive_union_test_record_container.go b/v10/test/union/primitive_union_test_record_container.go similarity index 82% rename from v9/test/union-string-bytes/primitive_union_test_record_container.go rename to v10/test/union/primitive_union_test_record_container.go index 52547665..5e22f107 100644 --- a/v9/test/union-string-bytes/primitive_union_test_record_container.go +++ b/v10/test/union/primitive_union_test_record_container.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -8,9 +8,9 @@ package avro import ( "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/vm" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/vm" ) func NewPrimitiveUnionTestRecordWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error) { diff --git a/v9/test/union/schema.avsc b/v10/test/union/schema.avsc similarity index 100% rename from v9/test/union/schema.avsc rename to v10/test/union/schema.avsc diff --git a/v9/test/union-string-bytes/schema_test.go b/v10/test/union/schema_test.go similarity index 76% rename from v9/test/union-string-bytes/schema_test.go rename to v10/test/union/schema_test.go index fb55f454..88f4bbe6 100644 --- a/v9/test/union-string-bytes/schema_test.go +++ b/v10/test/union/schema_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/actgardner/gogen-avro/v9/container" - "github.com/actgardner/gogen-avro/v9/test" + "github.com/actgardner/gogen-avro/v10/container" + "github.com/actgardner/gogen-avro/v10/test" ) func TestRoundTrip(t *testing.T) { diff --git a/v9/test/union/union_string_long_int_float_double_null_bool.go b/v10/test/union/union_string_long_int_float_double_null_bool.go similarity index 97% rename from v9/test/union/union_string_long_int_float_double_null_bool.go rename to v10/test/union/union_string_long_int_float_double_null_bool.go index b4465697..c7fe9f0d 100644 --- a/v9/test/union/union_string_long_int_float_double_null_bool.go +++ b/v10/test/union/union_string_long_int_float_double_null_bool.go @@ -1,4 +1,4 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. +// Code generated by github.com/actgardner/gogen-avro/v10. DO NOT EDIT. /* * SOURCE: * schema.avsc @@ -10,9 +10,9 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/compiler" - "github.com/actgardner/gogen-avro/v9/vm" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/compiler" + "github.com/actgardner/gogen-avro/v10/vm" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type UnionStringLongIntFloatDoubleNullBoolTypeEnum int diff --git a/v9/test/util.go b/v10/test/util.go similarity index 99% rename from v9/test/util.go rename to v10/test/util.go index bbd52594..2382a3b6 100644 --- a/v9/test/util.go +++ b/v10/test/util.go @@ -7,7 +7,7 @@ import ( "io/ioutil" "testing" - "github.com/actgardner/gogen-avro/v9/container" + "github.com/actgardner/gogen-avro/v10/container" "github.com/linkedin/goavro/v2" "github.com/stretchr/testify/assert" diff --git a/v9/util/bytes.go b/v10/util/bytes.go similarity index 100% rename from v9/util/bytes.go rename to v10/util/bytes.go diff --git a/v9/vm/eval.go b/v10/vm/eval.go similarity index 98% rename from v9/vm/eval.go rename to v10/vm/eval.go index a51904ce..87a65ef5 100644 --- a/v9/vm/eval.go +++ b/v10/vm/eval.go @@ -5,7 +5,7 @@ import ( "fmt" "io" - "github.com/actgardner/gogen-avro/v9/vm/types" + "github.com/actgardner/gogen-avro/v10/vm/types" ) type stackFrame struct { diff --git a/v9/vm/instructions.go b/v10/vm/instructions.go similarity index 100% rename from v9/vm/instructions.go rename to v10/vm/instructions.go diff --git a/v9/vm/op.go b/v10/vm/op.go similarity index 100% rename from v9/vm/op.go rename to v10/vm/op.go diff --git a/v9/vm/program.go b/v10/vm/program.go similarity index 100% rename from v9/vm/program.go rename to v10/vm/program.go diff --git a/v9/vm/reader_test.go b/v10/vm/reader_test.go similarity index 100% rename from v9/vm/reader_test.go rename to v10/vm/reader_test.go diff --git a/v9/vm/readers.go b/v10/vm/readers.go similarity index 100% rename from v9/vm/readers.go rename to v10/vm/readers.go diff --git a/v9/vm/types/boolean.go b/v10/vm/types/boolean.go similarity index 100% rename from v9/vm/types/boolean.go rename to v10/vm/types/boolean.go diff --git a/v9/vm/types/double.go b/v10/vm/types/double.go similarity index 100% rename from v9/vm/types/double.go rename to v10/vm/types/double.go diff --git a/v9/vm/types/field.go b/v10/vm/types/field.go similarity index 100% rename from v9/vm/types/field.go rename to v10/vm/types/field.go diff --git a/v9/vm/types/float.go b/v10/vm/types/float.go similarity index 100% rename from v9/vm/types/float.go rename to v10/vm/types/float.go diff --git a/v9/vm/types/int.go b/v10/vm/types/int.go similarity index 100% rename from v9/vm/types/int.go rename to v10/vm/types/int.go diff --git a/v9/vm/types/long.go b/v10/vm/types/long.go similarity index 100% rename from v9/vm/types/long.go rename to v10/vm/types/long.go diff --git a/v9/vm/types/null.go b/v10/vm/types/null.go similarity index 100% rename from v9/vm/types/null.go rename to v10/vm/types/null.go diff --git a/v9/vm/types/record.go b/v10/vm/types/record.go similarity index 100% rename from v9/vm/types/record.go rename to v10/vm/types/record.go diff --git a/v9/vm/types/string.go b/v10/vm/types/string.go similarity index 100% rename from v9/vm/types/string.go rename to v10/vm/types/string.go diff --git a/v9/vm/writers.go b/v10/vm/writers.go similarity index 100% rename from v9/vm/writers.go rename to v10/vm/writers.go diff --git a/v9/test/primitive/bytes.go b/v9/test/primitive/bytes.go deleted file mode 100644 index 79bda531..00000000 --- a/v9/test/primitive/bytes.go +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. -/* - * SOURCE: - * schema.avsc - */ -package avro - -import ( - "encoding/json" - - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" -) - -type Bytes []byte - -func (b *Bytes) UnmarshalJSON(data []byte) error { - var s string - if err := json.Unmarshal(data, &s); err != nil { - return err - } - *b = util.DecodeByteString(s) - return nil -} - -func (b Bytes) MarshalJSON() ([]byte, error) { - return []byte(util.EncodeByteString(b)), nil -} - -type BytesWrapper struct { - Target *Bytes -} - -func (b BytesWrapper) SetBoolean(v bool) { - panic("Unable to assign bytes to bytes field") -} - -func (b BytesWrapper) SetInt(v int32) { - panic("Unable to assign int to bytes field") -} - -func (b BytesWrapper) SetLong(v int64) { - panic("Unable to assign long to bytes field") -} - -func (b BytesWrapper) SetFloat(v float32) { - panic("Unable to assign float to bytes field") -} - -func (b BytesWrapper) SetDouble(v float64) { - panic("Unable to assign double to bytes field") -} - -func (b BytesWrapper) SetUnionElem(v int64) { - panic("Unable to assign union elem to bytes field") -} - -func (b BytesWrapper) SetBytes(v []byte) { - *(b.Target) = v -} - -func (b BytesWrapper) SetString(v string) { - *(b.Target) = []byte(v) -} - -func (b BytesWrapper) Get(i int) types.Field { - panic("Unable to get field from bytes field") -} - -func (b BytesWrapper) SetDefault(i int) { - panic("Unable to set default on bytes field") -} - -func (b BytesWrapper) AppendMap(key string) types.Field { - panic("Unable to append map key to from bytes field") -} - -func (b BytesWrapper) AppendArray() types.Field { - panic("Unable to append array element to from bytes field") -} - -func (b BytesWrapper) NullField(int) { - panic("Unable to null field in bytes field") -} - -func (b BytesWrapper) HintSize(int) { - panic("Unable to hint size in bytes field") -} - -func (b BytesWrapper) Finalize() {} diff --git a/v9/test/union-string-bytes/bytes.go b/v9/test/union-string-bytes/bytes.go deleted file mode 100644 index 79bda531..00000000 --- a/v9/test/union-string-bytes/bytes.go +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by github.com/actgardner/gogen-avro/v8. DO NOT EDIT. -/* - * SOURCE: - * schema.avsc - */ -package avro - -import ( - "encoding/json" - - "github.com/actgardner/gogen-avro/v9/util" - "github.com/actgardner/gogen-avro/v9/vm/types" -) - -type Bytes []byte - -func (b *Bytes) UnmarshalJSON(data []byte) error { - var s string - if err := json.Unmarshal(data, &s); err != nil { - return err - } - *b = util.DecodeByteString(s) - return nil -} - -func (b Bytes) MarshalJSON() ([]byte, error) { - return []byte(util.EncodeByteString(b)), nil -} - -type BytesWrapper struct { - Target *Bytes -} - -func (b BytesWrapper) SetBoolean(v bool) { - panic("Unable to assign bytes to bytes field") -} - -func (b BytesWrapper) SetInt(v int32) { - panic("Unable to assign int to bytes field") -} - -func (b BytesWrapper) SetLong(v int64) { - panic("Unable to assign long to bytes field") -} - -func (b BytesWrapper) SetFloat(v float32) { - panic("Unable to assign float to bytes field") -} - -func (b BytesWrapper) SetDouble(v float64) { - panic("Unable to assign double to bytes field") -} - -func (b BytesWrapper) SetUnionElem(v int64) { - panic("Unable to assign union elem to bytes field") -} - -func (b BytesWrapper) SetBytes(v []byte) { - *(b.Target) = v -} - -func (b BytesWrapper) SetString(v string) { - *(b.Target) = []byte(v) -} - -func (b BytesWrapper) Get(i int) types.Field { - panic("Unable to get field from bytes field") -} - -func (b BytesWrapper) SetDefault(i int) { - panic("Unable to set default on bytes field") -} - -func (b BytesWrapper) AppendMap(key string) types.Field { - panic("Unable to append map key to from bytes field") -} - -func (b BytesWrapper) AppendArray() types.Field { - panic("Unable to append array element to from bytes field") -} - -func (b BytesWrapper) NullField(int) { - panic("Unable to null field in bytes field") -} - -func (b BytesWrapper) HintSize(int) { - panic("Unable to hint size in bytes field") -} - -func (b BytesWrapper) Finalize() {}