summaryrefslogtreecommitdiff
path: root/helpers.go
diff options
context:
space:
mode:
Diffstat (limited to 'helpers.go')
-rw-r--r--helpers.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/helpers.go b/helpers.go
index 6a8fe69..72d4008 100644
--- a/helpers.go
+++ b/helpers.go
@@ -10,10 +10,6 @@ import (
)
// human readable JSON
-func (c *Cluster) FormatJSON() string {
- return protojson.Format(c)
-}
-
func (d *Droplets) FormatJSON() string {
return protojson.Format(d)
}
@@ -33,10 +29,6 @@ func (h *Hypervisors) FormatJSON() string {
// 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)
-}
-
func (d *Droplets) FormatTEXT() string {
return prototext.Format(d)
}
@@ -46,10 +38,6 @@ func (e *Events) FormatTEXT() string {
}
// marshal
-func (c *Cluster) MarshalJSON() ([]byte, error) {
- return protojson.Marshal(c)
-}
-
func (d *Droplets) MarshalJSON() ([]byte, error) {
return protojson.Marshal(d)
}
@@ -63,10 +51,6 @@ func (e *Events) MarshalJSON() ([]byte, error) {
}
// unmarshal
-func (c *Cluster) UnmarshalJSON(data []byte) error {
- return protojson.Unmarshal(data, c)
-}
-
func (d *Droplets) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, d)
}