flaghelper

package
v0.9.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: MPL-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 FuncBoolVar

type FuncBoolVar func(b bool) error

FuncBoolVar is a type of flag that accepts a function, converts the user's value to a bool, and then calls the given function.

func (FuncBoolVar) IsBoolFlag

func (f FuncBoolVar) IsBoolFlag() bool

func (FuncBoolVar) Set

func (f FuncBoolVar) Set(s string) error

func (FuncBoolVar) String

func (f FuncBoolVar) String() string

type FuncDurationVar

type FuncDurationVar func(d time.Duration) error

FuncDurationVar is a type of flag that accepts a function, converts the user's value to a duration, and then calls the given function.

func (FuncDurationVar) IsBoolFlag

func (f FuncDurationVar) IsBoolFlag() bool

func (FuncDurationVar) Set

func (f FuncDurationVar) Set(s string) error

func (FuncDurationVar) String

func (f FuncDurationVar) String() string

type FuncVar

type FuncVar func(s string) error

FuncVar is a type of flag that accepts a function that is the string given by the user.

func (FuncVar) IsBoolFlag

func (f FuncVar) IsBoolFlag() bool

func (FuncVar) Set

func (f FuncVar) Set(s string) error

func (FuncVar) String

func (f FuncVar) String() string

type StringFlag

type StringFlag []string

StringFlag implements the flag.Value interface and allows multiple calls to the same variable to append a list.

func (*StringFlag) Set

func (s *StringFlag) Set(value string) error

func (*StringFlag) String

func (s *StringFlag) String() string

Jump to

Keyboard shortcuts

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