diff options
| author | Jeff Carr <[email protected]> | 2024-11-29 12:03:35 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-29 12:03:35 -0600 |
| commit | 45b343bee8b1b38ad89899f31624613925bb408e (patch) | |
| tree | 8a159e6eadc7b186a5c130928b858162a5addf5a /marshal.go | |
| parent | 69093ef5de0eb6a5f78ff55e3e28c416224e8232 (diff) | |
might be pretty good stuff
Signed-off-by: Jeff Carr <[email protected]>
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, "}") |
