diff options
Diffstat (limited to 'header.go')
| -rw-r--r-- | header.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -6,7 +6,8 @@ import ( ) func headerComment(w io.Writer) { - fmt.Fprintln(w, "") + // technically this should be the first line and in this exact format: + fmt.Fprintln(w, "// Code generated by go.wit.com/apps/autogenpb. DO NOT EDIT.") fmt.Fprintln(w, "// This file was autogenerated with autogenpb", VERSION, "DO NOT EDIT") fmt.Fprintln(w, "// go install go.wit.com/apps/autogenpb@latest") fmt.Fprintln(w, "//") @@ -23,8 +24,9 @@ func headerComment(w io.Writer) { } func header(w io.Writer, names map[string]string) { - fmt.Fprintln(w, "package "+names["package"]) + // header must come first headerComment(w) + fmt.Fprintln(w, "package "+names["package"]) fmt.Fprintln(w, "import (") fmt.Fprintln(w, " \"fmt\"") fmt.Fprintln(w, " \"sort\"") |
