astiflag

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2018 License: MIT Imports: 3 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Subcommand

func Subcommand() (o string)

Subcommand retrieves the subcommand from the input Args

Types

type Strings

type Strings []string

Strings represents a flag that can be set several times that will output a []string

func (*Strings) Set

func (f *Strings) Set(i string) error

Set implements the flag.Value interface

func (*Strings) String

func (f *Strings) String() string

String implements the flag.Value interface

type StringsMap

type StringsMap map[string]bool

StringsMap represents a flag that can be set several times that will output a map[string]bool

func NewStringsMap

func NewStringsMap() StringsMap

NewStringsMap creates a new StringsMap

func (StringsMap) Set

func (f StringsMap) Set(i string) error

Set implements the flag.Value interface

func (StringsMap) String

func (f StringsMap) String() string

String implements the flag.Value interface

type Time

type Time struct {
	time.Time
}

Time represents a time flag

func (*Time) Set

func (f *Time) Set(i string) (err error)

Set implements the flag.Value interface

Jump to

Keyboard shortcuts

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