uflag

package
v1.1.12 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(expectName string, defaultValue bool, usage string) (p *bool, actualName string)

func BoolVar

func BoolVar(p *bool, expectName string, defaultValue bool, usage string) (actualName string)

func Duration

func Duration(expectName string, defaultValue time.Duration, usage string) (p *time.Duration, actualName string)

func DurationVar

func DurationVar(p *time.Duration, expectName string, defaultValue time.Duration,
	usage string) (actualName string)

func Float64

func Float64(expectName string, defaultValue float64, usage string) (p *float64, actualName string)

func Float64Var

func Float64Var(p *float64, expectName string, defaultValue float64, usage string) (actualName string)

func Int

func Int(expectName string, defaultValue int, usage string) (p *int, actualName string)

func Int64

func Int64(expectName string, defaultValue int64, usage string) (p *int64, actualName string)

func Int64Var

func Int64Var(p *int64, expectName string, defaultValue int64, usage string) (actualName string)

func IntVar

func IntVar(p *int, expectName string, defaultValue int, usage string) (actualName string)

func Parse

func Parse()

func String

func String(expectName string, defaultValue string, usage string) (p *string, actualName string)

func StringVar

func StringVar(p *string, expectName string, defaultValue string, usage string) (actualName string)

func Uint

func Uint(expectName string, defaultValue uint, usage string) (p *uint, actualName string)

func Uint64

func Uint64(expectName string, defaultValue uint64, usage string) (p *uint64, actualName string)

func Uint64Var

func Uint64Var(p *uint64, expectName string, defaultValue uint64, usage string) (actualName string)

func UintVar

func UintVar(p *uint, expectName string, defaultValue uint, usage string) (actualName string)

Types

type FlagNames

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

func (*FlagNames) Get

func (fl *FlagNames) Get(key string) (val int, isOk bool)

func (*FlagNames) Set

func (fl *FlagNames) Set(key string, val int)

Jump to

Keyboard shortcuts

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