flags

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(name, env string, fallback bool, help string) *bool

Bool registers a flag and returns the pointer to the resulting boolean. The default value is passed as fallback and env sets the env variable that can override the default.

func Duration

func Duration(name, env string, fallback time.Duration, help string) *time.Duration

Duration registers a flag and returns the pointer to the resulting duration. The default value is passed as fallback and env sets the env variable that can override the default.

func Int added in v0.4.0

func Int(name, env string, fallback int, help string) *int

Int registers a flag and returns the pointer to the resulting int. The default value is passed as fallback and env sets the env variable that can override the default.

func String

func String(name, env, fallback, help string) *string

String registers a flag and returns the pointer to the resulting string. The default value is passed as fallback and env sets the env variable that can override the default.

Types

This section is empty.

Jump to

Keyboard shortcuts

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