util

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaseInsensitiveSet

type CaseInsensitiveSet map[string]string

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 (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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL