Skip to content

Commit

Permalink
feat: generated code identifier on first line (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomarrell authored Sep 23, 2024
1 parent 571d881 commit 0e4fa96
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 25 deletions.
3 changes: 1 addition & 2 deletions cmd/avrogen/testdata/golden.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions cmd/avrogen/testdata/golden_encoders.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions cmd/avrogen/testdata/golden_encoders_fullschema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions cmd/avrogen/testdata/golden_fullname.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions cmd/avrogen/testdata/golden_stricttypes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions gen/output_template.tmpl
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// Code generated by avro/gen. DO NOT EDIT.
{{- if len .PackageDoc }}
// {{ .PackageDoc }}
{{- end }}
package {{ .PackageName }}

// Code generated by avro/gen. DO NOT EDIT.

{{- $encoders := .WithEncoders }}
{{ if len .Imports }}
import (
Expand Down Expand Up @@ -57,4 +56,4 @@ package {{ .PackageName }}
return avro.Marshal(o.Schema(), o)
}
{{- end }}
{{ end }}
{{ end }}
3 changes: 1 addition & 2 deletions gen/testdata/golden.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions gen/testdata/golden_encoders.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions gen/testdata/golden_encoders_fullschema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions gen/testdata/golden_fullname.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions gen/testdata/golden_logicaltype.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions gen/testdata/golden_multiple.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0e4fa96

Please sign in to comment.