diff options
Diffstat (limited to 'helpers.go')
| -rw-r--r-- | helpers.go | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -24,10 +24,13 @@ func (c *Cluster) FormatJSON() string { return protojson.Format(c) } -func (c *Cluster) FormatTEXT() string { - return prototext.Format(c) -} - func (c *Cluster) UnmarshalJSON(data []byte) error { return protojson.Unmarshal(data, c) } + +// apparently this isn't supposed to be used? +// https://protobuf.dev/reference/go/faq/#unstable-text +// this is a shame because this is much nicer output than JSON Format() +func (c *Cluster) FormatTEXT() string { + return prototext.Format(c) +} |
