hashicorp / go-set

The go-set package provides generic Set implementations for Go, including HashSet for types with a Hash() function and TreeSet for orderable data
Mozilla Public License 2.0
118 stars 8 forks source link

breaking: fixup String() function signature #20

Closed shoenig closed 1 year ago

shoenig commented 1 year ago

This PR renames String() to StringFunc(), and adds back String() but with the standard signature that satisfies the fmt.Stringer interface. Although this is a breaking change, it seems unlikely to cause real world problems, and the benefits seem like a clear net-win.