env

package
v0.0.0-...-de1b222 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(name string, required bool, defaultValue bool, help string) *bool

Bool something

func Duration

func Duration(name string, required bool, defaultValue time.Duration, help string) *time.Duration

Duration something

func Float64

func Float64(name string, required bool, defaultValue float64, help string) *float64

Float64 something

func Help

func Help() string

Help is help

func Int

func Int(name string, required bool, defaultValue int, help string) *int

Int something

func Parse

func Parse() error

Parse something

func String

func String(name string, required bool, defaultValue, help string) *string

String captures the value of an environment varialbe name: the name of the environment variable required: if set to true and environment variable does not exist an error will be raised defaultValue: the default value to return if the environment variable is not set help: help string related to the variable

Types

This section is empty.

Jump to

Keyboard shortcuts

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