package
Version:
v0.0.0-...-1643519
Opens a new window with list of versions in this module.
Published: Jul 16, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
¶
Package stringlistflag provides a flag.Value implementation which resolves
multiple args into a []string.
Example demonstrates how to use stringlistflag.
Output:
-color value
favorite color, may be repeated.
Value is: Violet, Red, Violet
Flag is a flag.Value implementation which represents an ordered 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 would be []string{"Foo", "Bar", "Bar"}
Set implements flag.Value's Set function.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.