Skip to content

Commit

Permalink
make ToString() public
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Dec 13, 2024
1 parent 99e4267 commit c639f14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions share/shwap/row.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit c639f14

Please sign in to comment.