From d52e39025edcc8ec5bda4949a9dd65ce6499b870 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 22 Oct 2024 06:25:31 -0500 Subject: [PATCH] don't actually use prototext? Signed-off-by: Jeff Carr --- helpers.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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) +}