Documentation
¶
Overview ¶
Package flags provides custom flag value types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params []Param
Params is a collection of key value pairs. Satisfies the flag.Value interface.
func ParseParams ¶
ParseParams parses a string into a key-value pair map. Expects a comma-separated list of key-value pairs, for example:
a=1,b=2,c=3
type Strings ¶
type Strings []string
Strings is a list of strings satisfying the flag.Value interface.
type TypeParams ¶
TypeParams is a concise configuration of some object, with a type and parameters. Satisfies the flag.Value interface.
func ParseTypeParams ¶
func ParseTypeParams(s string) (*TypeParams, error)
ParseTypeParams parses a string into type and parameters. For example:
type:a=1,b=2,c=3
func (*TypeParams) Set ¶
func (t *TypeParams) Set(s string) error
func (*TypeParams) String ¶
func (t *TypeParams) String() string
Click to show internal directories.
Click to hide internal directories.