diff options
Diffstat (limited to 'marshal.go')
| -rw-r--r-- | marshal.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -38,9 +38,9 @@ func marshalThing(w io.Writer, thing string) { fmt.Fprintln(w, " return protojson.Format(r)") fmt.Fprintln(w, "}") fmt.Fprintln(w, "") - fmt.Fprintln(w, "// apparently this isn't supposed to be used?") + fmt.Fprintln(w, "// apparently this isn't stable") fmt.Fprintln(w, "// https://protobuf.dev/reference/go/faq/#unstable-text") - fmt.Fprintln(w, "// this is a shame because this is much nicer output than JSON Format()") + fmt.Fprintln(w, "// but it's so awesome I'm using it by default to try to fix the problems with it") fmt.Fprintln(w, "func (r *"+thing+") FormatTEXT() string {") fmt.Fprintln(w, " return prototext.Format(r)") fmt.Fprintln(w, "}") |
