From 21147153a61494568f4ddc7875b937ff3f5f8361 Mon Sep 17 00:00:00 2001 From: vgonkivs Date: Fri, 13 Dec 2024 13:51:52 +0200 Subject: [PATCH] rename to String() --- share/shwap/row.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/shwap/row.go b/share/shwap/row.go index 0162693856..d76e04ab65 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.String(), } 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) String() string { switch s { case Left: return "LEFT"