package
Version:
v0.0.0-...-89aa834
Opens a new window with list of versions in this module.
Published: Oct 29, 2024
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
Package flags provides custom flag types and utilities.
Map is a map of string key-value pairs that implements the flag.Value interface.
Contains reports whether the key is in the map.
Get returns the value of the key.
IsAllValuesSet reports whether all values are set.
Lookup returns the value of the key and reports whether the key is in the map.
Set implements the flag.Value interface.
String implements the flag.Value interface.
MapSlice is a map of string key-slice pairs that implements the flag.Value interface.
It is used to parse multiple values for the same key.
Contains reports whether the key is in the map.
Get returns the slice of the key.
Lookup returns the slice of the key and reports whether the key is in the map.
Set implements the flag.Value interface.
type Option func(*options)
Option is an option for flag types.
NameColor sets the color of command names.
Newline adds a newline after the usage text.
Slice is a slice of strings that implements the flag.Value interface.
Set implements the flag.Value interface.
String implements the flag.Value interface.
UsageFunc is a function that formats usage text.
UseUsage returns a UsageFunc that formats usage text with colorized command names.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.