flagset

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 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 BoolFlag

type BoolFlag struct {
	Name    string
	Usage   string
	Default bool
	Value   *bool
}

type FlagVar

type FlagVar struct {
	Name  string
	Usage string
}

type Flagset

type Flagset struct {
	// contains filtered or unexported fields
}

func NewFlagSet

func NewFlagSet(name string) *Flagset

func (*Flagset) Args

func (f *Flagset) Args() []string

func (*Flagset) BoolFlag

func (f *Flagset) BoolFlag(b *BoolFlag)

func (*Flagset) BoolVar

func (f *Flagset) BoolVar()

func (*Flagset) Help

func (f *Flagset) Help() string

func (*Flagset) IntFlag

func (f *Flagset) IntFlag(i *IntFlag)

func (*Flagset) Parse

func (f *Flagset) Parse(args []string) error

func (*Flagset) StringFlag

func (f *Flagset) StringFlag(b *StringFlag)

type IntFlag

type IntFlag struct {
	Name    string
	Usage   string
	Default int
	Value   *int
}

type StringFlag

type StringFlag struct {
	Name    string
	Usage   string
	Default string
	Value   *string
}

Jump to

Keyboard shortcuts

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