flag

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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