Documentation
¶
Index ¶
- type CaseInsensitiveSet
- func (s CaseInsensitiveSet) Add(item string)
- func (s CaseInsensitiveSet) Contains(item string) bool
- func (s CaseInsensitiveSet) Copy() CaseInsensitiveSet
- func (s CaseInsensitiveSet) Remove(item string)
- func (s *CaseInsensitiveSet) Set(val string) error
- func (s *CaseInsensitiveSet) String() string
- func (s *CaseInsensitiveSet) Type() string
- func (s *CaseInsensitiveSet) UnmarshalYAML(value *yaml.Node) error
- func (s CaseInsensitiveSet) Value(item string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaseInsensitiveSet ¶
CaseInsensitiveSet is a mapping of lowercase strings to the original casing of those strings. It allows membership tests on the lowercase keys, while preserving the original values.
func NewCaseInsensitiveSet ¶
func NewCaseInsensitiveSet(items []string) CaseInsensitiveSet
func (CaseInsensitiveSet) Add ¶
func (s CaseInsensitiveSet) Add(item string)
func (CaseInsensitiveSet) Contains ¶
func (s CaseInsensitiveSet) Contains(item string) bool
func (CaseInsensitiveSet) Copy ¶
func (s CaseInsensitiveSet) Copy() CaseInsensitiveSet
func (CaseInsensitiveSet) Remove ¶
func (s CaseInsensitiveSet) Remove(item string)
func (*CaseInsensitiveSet) Set ¶
func (s *CaseInsensitiveSet) Set(val string) error
Set implements pflag.Value.Set, which sets the new value of the collection from command-line flags.
func (*CaseInsensitiveSet) String ¶
func (s *CaseInsensitiveSet) String() string
String implements pflag.Value.String, which prints the contents of the collection for use with command-line flags.
func (*CaseInsensitiveSet) Type ¶
func (s *CaseInsensitiveSet) Type() string
Type implements pflag.Value.Type, which returns a description of the flag type for display in command-line help.
func (*CaseInsensitiveSet) UnmarshalYAML ¶
func (s *CaseInsensitiveSet) UnmarshalYAML(value *yaml.Node) error
func (CaseInsensitiveSet) Value ¶
func (s CaseInsensitiveSet) Value(item string) string
Click to show internal directories.
Click to hide internal directories.