flagenv

package module
v0.0.0-...-bc6ced7 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2018 License: BSD-2-Clause Imports: 6 Imported by: 11

README

Flag

Flag adapter with env default values

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnvPrefix string

EnvPrefix is the prefix for environment variables

Functions

func Bool

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

Bool returns a flagenv variable pointer of type bool

func BoolVar

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

BoolVar sets a given pointer flagenv variable of type bool

func Duration

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

Duration returns a flagenv variable pointer of type time.Duration

func DurationVar

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

DurationVar sets a given pointer flagenv variable of type time.Duration

func Int

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

Int returns a flagenv variable pointer of type int

func IntVar

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

IntVar sets a given pointer flagenv variable of type int

func Parse

func Parse()

Parse is an alias to flag.Parse()

func String

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

String returns a flagenv variable pointer of type string

func StringVar

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

StringVar sets a given pointer flagenv variable of type string

Types

This section is empty.

Jump to

Keyboard shortcuts

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