xpflag

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringToStringValue

type StringToStringValue struct {
	// contains filtered or unexported fields
}

StringToStringValue flag.

func NewStringToStringValue

func NewStringToStringValue(p *map[string]string, value map[string]string) *StringToStringValue

NewStringToStringValue creates new flag with init map, default value and comma separator.

func (*StringToStringValue) Set

func (s *StringToStringValue) Set(val string) error

Set value in format: a=1,b=2

func (*StringToStringValue) SetSeparator

func (s *StringToStringValue) SetSeparator(separator string)

SetSeparator changes separator.

func (*StringToStringValue) String

func (s *StringToStringValue) String() string

func (*StringToStringValue) Type

func (s *StringToStringValue) Type() string

Type returns type of value.

Jump to

Keyboard shortcuts

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