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.

  1. Install stringer go install golang.org/x/tools/cmd/stringer@latest
  2. Regenerate stringer files if needed go generate
  3. Run go run . --pill Placebo --jar Aspirin --jar Ibuprofen, and see it prints:
Placebo
[Aspirin Ibuprofen]