cliFlags

package
v0.0.0-...-8020ed7 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2017 License: Apache-2.0 Imports: 1 Imported by: 43

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolFlag

type BoolFlag struct {
	Name      string
	Value     bool
	Usage     string
	ShortName string
}

func (*BoolFlag) GetName

func (f *BoolFlag) GetName() string

func (*BoolFlag) GetShortName

func (f *BoolFlag) GetShortName() string

func (*BoolFlag) GetValue

func (f *BoolFlag) GetValue() interface{}

func (*BoolFlag) Set

func (f *BoolFlag) Set(v string)

func (*BoolFlag) String

func (f *BoolFlag) String() string

type Float64Flag

type Float64Flag struct {
	Name      string
	Value     float64
	Usage     string
	ShortName string
}

func (*Float64Flag) GetName

func (f *Float64Flag) GetName() string

func (*Float64Flag) GetShortName

func (f *Float64Flag) GetShortName() string

func (*Float64Flag) GetValue

func (f *Float64Flag) GetValue() interface{}

func (*Float64Flag) Set

func (f *Float64Flag) Set(v string)

func (*Float64Flag) String

func (f *Float64Flag) String() string

type IntFlag

type IntFlag struct {
	Name      string
	Value     int
	Usage     string
	ShortName string
}

func (*IntFlag) GetName

func (f *IntFlag) GetName() string

func (*IntFlag) GetShortName

func (f *IntFlag) GetShortName() string

func (*IntFlag) GetValue

func (f *IntFlag) GetValue() interface{}

func (*IntFlag) Set

func (f *IntFlag) Set(v string)

func (*IntFlag) String

func (f *IntFlag) String() string

type StringFlag

type StringFlag struct {
	Name      string
	Value     string
	Usage     string
	ShortName string
}

func (*StringFlag) GetName

func (f *StringFlag) GetName() string

func (*StringFlag) GetShortName

func (f *StringFlag) GetShortName() string

func (*StringFlag) GetValue

func (f *StringFlag) GetValue() interface{}

func (*StringFlag) Set

func (f *StringFlag) Set(v string)

func (*StringFlag) String

func (f *StringFlag) String() string

type StringSliceFlag

type StringSliceFlag struct {
	Name      string
	Value     []string
	Usage     string
	ShortName string
}

StringSlice flag can be defined multiple times in the arguments

func (*StringSliceFlag) GetName

func (f *StringSliceFlag) GetName() string

func (*StringSliceFlag) GetShortName

func (f *StringSliceFlag) GetShortName() string

func (*StringSliceFlag) GetValue

func (f *StringSliceFlag) GetValue() interface{}

func (*StringSliceFlag) Set

func (f *StringSliceFlag) Set(v string)

func (*StringSliceFlag) String

func (f *StringSliceFlag) String() string

Jump to

Keyboard shortcuts

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