flagutil

package
v0.0.0-...-18cb69e Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidFlagMap = fmt.Errorf("not a valid mapping, must be k=k")
)

Functions

This section is empty.

Types

type KeyValue

type KeyValue struct {
	Key   string
	Value string
}

type KeyValueFlag

type KeyValueFlag struct {
	// List contains all the k=v values in order encountered
	List []KeyValue
	// Map contains all the k=v values as a map
	Map map[string]string
}

KeyValueFlag is a cli.Generic implementation that parses flag values of the form k=v

func (*KeyValueFlag) Set

func (k *KeyValueFlag) Set(value string) error

func (*KeyValueFlag) String

func (k *KeyValueFlag) String() string

Jump to

Keyboard shortcuts

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