summaryrefslogtreecommitdiff
path: root/marshal.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-29 12:03:35 -0600
committerJeff Carr <[email protected]>2024-11-29 12:03:35 -0600
commit45b343bee8b1b38ad89899f31624613925bb408e (patch)
tree8a159e6eadc7b186a5c130928b858162a5addf5a /marshal.go
parent69093ef5de0eb6a5f78ff55e3e28c416224e8232 (diff)
might be pretty good stuff
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'marshal.go')
-rw-r--r--marshal.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/marshal.go b/marshal.go
index 9f01cae..07042f0 100644
--- a/marshal.go
+++ b/marshal.go
@@ -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, "}")