Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
blorgbeard committed Jun 10, 2024
1 parent d6a059c commit 01b716c
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cmd/avrogen/testdata/golden.go

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

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

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

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

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

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

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

2 changes: 1 addition & 1 deletion gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func WithStrictTypes(b bool) OptsFunc {
}
}

// WithPackageDoc configures the generator to use output the given text as a package doc comment.
// WithPackageDoc configures the generator to output the given text as a package doc comment.
func WithPackageDoc(text string) OptsFunc {
return func(g *Generator) {
g.pkgdoc = text
Expand Down
6 changes: 4 additions & 2 deletions gen/output_template.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{- end }}
package {{ .PackageName }}

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

{{- $encoders := .WithEncoders }}
{{ if len .Imports }}
Expand All @@ -17,7 +17,9 @@ package {{ .PackageName }}
{{- range .Typedefs }}
{{- if len .Doc }}
// {{ .Doc }}
{{- end}}
{{- else }}
// {{ .Name }} is a generated struct.
{{- end }}
type {{ .Name }} struct {
{{- range .Fields }}
{{- $f := . }}
Expand Down
10 changes: 9 additions & 1 deletion gen/testdata/golden.go

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

10 changes: 9 additions & 1 deletion gen/testdata/golden_encoders.go

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

10 changes: 9 additions & 1 deletion gen/testdata/golden_fullname.go

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

4 changes: 3 additions & 1 deletion 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 01b716c

Please sign in to comment.