Package stringsetflag provides a flag.Value implementation which resolves multiple args into a stringset.
Example demonstrates how to use stringlistflag.
Output: -color value favorite color, may be repeated. Value is: Red,Violet Likes Blue: false Likes Red: true
Flag is a flag.Value implementation which represents an unordered set of strings.
For example, this allows you to construct a flag that would behave like:
-myflag Foo -myflag Bar -myflag Bar
And then myflag.Data.Has("Bar") would be true.