flags

package
Version: v0.0.0-...-d70c95a Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(f *flag.FlagSet, flagInfo FlagInfo, defaultValue bool)

func Duration

func Duration(f *flag.FlagSet, flagInfo FlagInfo, defaultValue time.Duration)

func Int

func Int(f *flag.FlagSet, flagInfo FlagInfo, defaultValue int)

func String

func String(f *flag.FlagSet, flagInfo FlagInfo, defaultValue string)

Types

type FlagInfo

type FlagInfo struct {
	Name        string
	Shorthand   string
	EnvVar      string
	Namespace   string
	Description string
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL