Closed alex-telpis closed 8 months ago
Having a String() string method is a more idiomatic way to handle string representation, as implementing the fmt.Stringer interface makes it easier to work with the standard library.
String()
fmt.Stringer
https://go.dev/tour/methods/17
Having a
String()
string method is a more idiomatic way to handle string representation, as implementing thefmt.Stringer
interface makes it easier to work with the standard library.https://go.dev/tour/methods/17