Help us shape the future of Go! Take the 2026 Go Developer Survey

flagenv

package module
v0.0.0-...-73a8767 Latest Latest
Warning

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

Go to latest
Published: May 12, 2018 License: MIT Imports: 2 Imported by: 0

README

Build Status

flagenv is a library for using environment variables as command line options alternative.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolVar

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

BoolVar defines a int flag with specified name, default value, and usage string. The argument p points to a bool variable in which to store the value of the flag.

func IntVar

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

IntVar defines a int flag with specified name, default value, and usage string. The argument p points to a int variable in which to store the value of the flag.

func Parse

func Parse()

Parse parses the flags from os.Environ. Must be called after all flags are defined and before flags are accessed by the program.

func StringVar

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

StringVar defines a string flag with specified name, default value, and usage string. The argument p points to a string variable in which to store the value of the flag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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