flagenv

package
v0.0.66 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Deprecated: *flag.FlagSet is difficult to use and hard to test.

Index

Constants

This section is empty.

Variables

View Source
var CommandLine = NewFlagEnvSet(os.Args[0], flag.ExitOnError)

CommandLine is the default set of command-line flags, parsed from os.Args. The top-level functions such as BoolVar, Arg, and so on are wrappers for the methods of CommandLine.

Deprecated: *flag.FlagSet is difficult to use and hard to test.

Functions

func Bool deprecated

func Bool(name string, environ string, value bool, usage string) *bool

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func BoolVar deprecated

func BoolVar(p *bool, name string, environ string, value bool, usage string)

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func Float64 deprecated

func Float64(name string, environ string, value float64, usage string) *float64

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func Float64Var deprecated

func Float64Var(p *float64, name string, environ string, value float64, usage string)

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func Int deprecated

func Int(name string, environ string, value int, usage string) *int

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func Int64 deprecated

func Int64(name string, environ string, value int64, usage string) *int64

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func Int64Var deprecated

func Int64Var(p *int64, name string, environ string, value int64, usage string)

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func IntVar deprecated

func IntVar(p *int, name string, environ string, value int, usage string)

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func Second deprecated

func Second(name string, environ string, value time.Duration, usage string) *time.Duration

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func SecondVar deprecated

func SecondVar(p *time.Duration, name string, environ string, value time.Duration, usage string)

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func String deprecated

func String(name string, environ string, value string, usage string) *string

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func StringVar deprecated

func StringVar(p *string, name string, environ string, value string, usage string)

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func Uint deprecated

func Uint(name string, environ string, value uint, usage string) *uint

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func Uint64 deprecated

func Uint64(name string, environ string, value uint64, usage string) *uint64

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func Uint64Var deprecated

func Uint64Var(p *uint64, name string, environ string, value uint64, usage string)

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func UintVar deprecated

func UintVar(p *uint, name string, environ string, value uint, usage string)

Deprecated: *flag.FlagSet is difficult to use and hard to test.

Types

type FlagEnvSet deprecated

type FlagEnvSet struct {
	*flag.FlagSet
}

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func NewFlagEnvSet deprecated

func NewFlagEnvSet(name string, errorHandling flag.ErrorHandling) *FlagEnvSet

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func (*FlagEnvSet) Bool deprecated

func (s *FlagEnvSet) Bool(name string, environ string, value bool, usage string) *bool

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func (*FlagEnvSet) BoolVar deprecated

func (s *FlagEnvSet) BoolVar(p *bool, name string, environ string, value bool, usage string)

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func (*FlagEnvSet) Float64 deprecated

func (s *FlagEnvSet) Float64(name string, environ string, value float64, usage string) *float64

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func (*FlagEnvSet) Float64Var deprecated

func (s *FlagEnvSet) Float64Var(p *float64, name string, environ string, value float64, usage string)

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func (*FlagEnvSet) Int deprecated

func (s *FlagEnvSet) Int(name string, environ string, value int, usage string) *int

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func (*FlagEnvSet) Int64 deprecated

func (s *FlagEnvSet) Int64(name string, environ string, value int64, usage string) *int64

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func (*FlagEnvSet) Int64Var deprecated

func (s *FlagEnvSet) Int64Var(p *int64, name string, environ string, value int64, usage string)

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func (*FlagEnvSet) IntVar deprecated

func (s *FlagEnvSet) IntVar(p *int, name string, environ string, value int, usage string)

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func (*FlagEnvSet) Second deprecated

func (s *FlagEnvSet) Second(name string, environ string, value time.Duration, usage string) *time.Duration

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func (*FlagEnvSet) SecondVar deprecated

func (s *FlagEnvSet) SecondVar(p *time.Duration, name string, environ string, value time.Duration, usage string)

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func (*FlagEnvSet) String deprecated

func (s *FlagEnvSet) String(name string, environ string, value string, usage string) *string

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func (*FlagEnvSet) StringVar deprecated

func (s *FlagEnvSet) StringVar(p *string, name string, environ string, value string, usage string)

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func (*FlagEnvSet) Uint deprecated

func (s *FlagEnvSet) Uint(name string, environ string, value uint, usage string) *uint

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func (*FlagEnvSet) Uint64 deprecated

func (s *FlagEnvSet) Uint64(name string, environ string, value uint64, usage string) *uint64

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func (*FlagEnvSet) Uint64Var deprecated

func (s *FlagEnvSet) Uint64Var(p *uint64, name string, environ string, value uint64, usage string)

Deprecated: *flag.FlagSet is difficult to use and hard to test.

func (*FlagEnvSet) UintVar deprecated

func (s *FlagEnvSet) UintVar(p *uint, name string, environ string, value uint, usage string)

Deprecated: *flag.FlagSet is difficult to use and hard to test.

Jump to

Keyboard shortcuts

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