cliFlags

package
v6.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2016 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 define 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