diff options
| author | Jeff Carr <[email protected]> | 2024-10-31 13:07:24 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-31 13:07:24 -0500 |
| commit | 10793e365d594e98bbc8e04251cfbc6b6b3ddbea (patch) | |
| tree | 94b5a6c8ec1639dd2867dd42e51c4ed732576e35 /helpers.go | |
| parent | f4cb9e27ce6d963d6fa613ab8131945e833443ce (diff) | |
seems to compile
Signed-off-by: Jeff Carr <[email protected]>
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) } |
