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

docs: complete Go doc testable examples for Set #45

Closed shoenig closed 1 year ago

shoenig commented 1 year ago

https://github.com/hashicorp/go-set/blob/main/examples_set_test.go contains a few testable Go doc examples for Set. Lets' fill in the implementations for the remaining methods

https://go.dev/blog/examples