diff options
Diffstat (limited to 'helpers.go')
| -rw-r--r-- | helpers.go | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -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) } |
