diff --git a/share/shwap/row.go b/share/shwap/row.go index 0e3c8eb6de..0162693856 100644 --- a/share/shwap/row.go +++ b/share/shwap/row.go @@ -148,7 +148,7 @@ func (r Row) MarshalJSON() ([]byte, error) { Side string `json:"side"` }{ Shares: r.halfShares, - Side: r.side.toString(), + Side: r.side.ToString(), } return json.Marshal(&jsonRow) } @@ -184,7 +184,7 @@ func sideFromProto(side pb.Row_HalfSide) RowSide { return Right } -func (s RowSide) toString() string { +func (s RowSide) ToString() string { switch s { case Left: return "LEFT"