mcnflag

package
v0.15.0-rancher8.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

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
	Usage  string
	EnvVar string
}

func (BoolFlag) Default

func (f BoolFlag) Default() interface{}

func (BoolFlag) String

func (f BoolFlag) String() string

TODO: Could this be done more succinctly using embedding?

type Flag

type Flag interface {
	fmt.Stringer
	Default() interface{}
}

type IntFlag

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

func (IntFlag) Default

func (f IntFlag) Default() interface{}

func (IntFlag) String

func (f IntFlag) String() string

TODO: Could this be done more succinctly using embedding?

type StringFlag

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

func (StringFlag) Default

func (f StringFlag) Default() interface{}

func (StringFlag) String

func (f StringFlag) String() string

TODO: Could this be done more succinctly using embedding?

type StringSliceFlag

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

func (StringSliceFlag) Default

func (f StringSliceFlag) Default() interface{}

func (StringSliceFlag) String

func (f StringSliceFlag) String() string

TODO: Could this be done more succinctly using embedding?

Jump to

Keyboard shortcuts

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