argument

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Date

type Date struct {
	Value   *time.Time
	Default time.Time
	// contains filtered or unexported fields
}

-- Date

func NewDate

func NewDate(fs *flag.FlagSet, name string, def time.Time, format string, usage string) *Date

func (Date) Set

func (d Date) Set(str string) (err error)

func (Date) String

func (d Date) String() (str string)

type Int

type Int struct {
	Value   *int
	Default int
}

func NewInt

func NewInt(fs *flag.FlagSet, name string, def int, usage string) *Int

func (Int) Set

func (i Int) Set(str string) (err error)

func (Int) String

func (i Int) String() (str string)

type Str

type Str struct {
	Value   *string
	Default string
}

Str is a string argument

func New

func New(fs *flag.FlagSet, name string, def string, usage string) *Str

func (Str) Set

func (s Str) Set(str string) (err error)

func (Str) String

func (s Str) String() (str string)

Jump to

Keyboard shortcuts

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