26 lines
788 B
Markdown
26 lines
788 B
Markdown
# stringset
|
|
|
|
http://godoc.org/bitbucket.org/creachadair/stringset
|
|
|
|
[![Go Report Card](https://goreportcard.com/badge/bitbucket.org/creachadair/stringset)](https://goreportcard.com/report/bitbucket.org/creachadair/stringset)
|
|
|
|
The `stringset` package implements a lightweight set-of-strings type based
|
|
around Go's built-in map type.
|
|
|
|
## Generating the Code
|
|
|
|
The `stringset` package is generated by the `makeset` program from source
|
|
templates `core.go.in` (the main package source) and `core_test.go.in` (for the
|
|
unit tests). If you need to modify the templates, edit those files and run:
|
|
|
|
```shell
|
|
go generate ./makeset
|
|
```
|
|
|
|
to update the `static.go` file. You can then re-generate the `stringset`
|
|
package by running:
|
|
|
|
```shell
|
|
go run ./makeset -config makeset/stringset.toml -output .
|
|
```
|