flags

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapStringStringFlag

type MapStringStringFlag struct {
	Values map[string]string
}

MapStringStringFlag is a flag struct for key=value pairs

func NewMapStringStringFlag

func NewMapStringStringFlag() MapStringStringFlag

NewMapStringStringFlag creates a new flag var for storing key=value pairs

func (*MapStringStringFlag) Set

func (s *MapStringStringFlag) Set(value string) error

Set implements the flag.Var interface

func (*MapStringStringFlag) String

func (s *MapStringStringFlag) String() string

String implements the flag.Var interface

func (*MapStringStringFlag) ToMapStringString

func (s *MapStringStringFlag) ToMapStringString() map[string]string

ToMapStringString returns the underlying representation of the map of key=value pairs

Jump to

Keyboard shortcuts

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