diff --git a/helpers.go b/helpers.go index 5549358..00ca6cf 100644 --- a/helpers.go +++ b/helpers.go @@ -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) +}