Documentation
¶
Overview ¶
Package experimentalflags provides functionality for reading options defined in an environment variable named IMAGE_BUILDER_EXPERIMENTAL.
These functions should be used to determine, in a common way, if experimental features should be enabled when using the libarary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
Bool returns true if there is a boolean option with the given option name.
Example usage by the user:
IMAGE_BUILDER_EXPERIMENTAL=skip-foo,skip-bar=1,skip-baz=true
would result in experimetnalflags.Bool("skip-foo") -> true
func String ¶
String returns the user set string for the given experimental feature.
Note that currently no quoting or escaping is supported, so a string can (currently) not contain a "," or a "=".
Example usage by the user:
IMAGE_BUILDER_EXPERIMENTAL=key=value
would result in experimetnalflags.String("key") -> "value"
Types ¶
This section is empty.