env

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package env provides a means to read environment variables into values backed by a flag.FlagSet.

Environment variables are of the format:

<FSNAME>_<KEYNAME>

Where FSNAME is the name of the given flag.FlagSet. KEYNAME is the name of the flag. All spaces and periods are replaced with underscores in both strings. The name of the FlagSet is cleaned with path.Base().

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(flagSet *flag.FlagSet) error

Parse reads environment variables and parses into matching flags in the given flagset. If flagSet is nil, the global flag.CommandLine FlagSet is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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