diff options
Diffstat (limited to 'header.go')
| -rw-r--r-- | header.go | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -7,7 +7,7 @@ import ( func pbHeaderComment(w io.Writer) { // technically this should be the first line and in this exact format: - fmt.Fprintln(w, "// Code modified by go.wit.com/apps/autogenpb. DO NOT EDIT.") + fmt.Fprintln(w, "// Code modified by go.wit.com/apps/autogenpb DO NOT EDIT.") fmt.Fprintln(w, "//") fmt.Fprintln(w, "// user defined Mutex locks were auto added") fmt.Fprintln(w, "//") @@ -19,18 +19,14 @@ func pbHeaderComment(w io.Writer) { func headerComment(w io.Writer) { // 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, "// Code generated by go.wit.com/apps/autogenpb DO NOT EDIT.") fmt.Fprintln(w, "// This file was autogenerated with autogenpb", VERSION, BUILDTIME) fmt.Fprintln(w, "// go install go.wit.com/apps/autogenpb@latest") fmt.Fprintln(w, "//") - fmt.Fprintln(w, "// You can use it on simple protobuf files") - fmt.Fprintln(w, "// The .proto file must have a singular and plural form of a message") - fmt.Fprintln(w, "// (for those of you that know ruby on rails, it's like that)") + fmt.Fprintln(w, "// define which structs (messages) you want to use in the .proto file") + fmt.Fprintln(w, "// Then sort.pb.go and marshal.pb.go files are autogenerated") fmt.Fprintln(w, "//") - fmt.Fprintln(w, "// You can mark which repos you want to auto generate sort.pb.go and marshal.pb.go files for") - fmt.Fprintln(w, "//") - fmt.Fprintln(w, "// For an example,") - fmt.Fprintln(w, "// go-clone go.wit.com/lib/protobuf/gitpb") + fmt.Fprintln(w, "// autogenpb uses it and has an example .proto file with instructions") fmt.Fprintln(w, "//") fmt.Fprintln(w, "") } |
