package
0.0.0-20240709090339-eb9e24cd1b44
Repository: https://github.com/mmatczuk/anyflag.git
Documentation: pkg.go.dev
# README
Enum Stringer
This example shows how anytype
can be used for enums. It requires Go stringer tool to be installed.
- Install stringer
go install golang.org/x/tools/cmd/stringer@latest
- Regenerate stringer files if needed
go generate
- Run
go run . --pill Placebo --jar Aspirin --jar Ibuprofen
, and see it prints:
Placebo
[Aspirin Ibuprofen]