env

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvVarAsBool

func GetEnvVarAsBool(k string, defaultBool bool) bool

GetEnvVarAsBool gets an env variable and parses to a bool; or returns a default bool if variable missing or not a bool

func GetEnvVarAsInt

func GetEnvVarAsInt(k string, defaultInt int) int

GetEnvVarAsInt gets an env variable and parses to an int; or returns a default int if variable missing or not an int

func GetEnvVarAsString

func GetEnvVarAsString(k, defaultEnvValue string) string

GetEnvVarAsString gets an environment variable, or returns a default value if missing/empty

func GetVcapApplication

func GetVcapApplication() types.CfVcapApplication

func ParseInt

func ParseInt(s string, defaultInt int) int

ParseInt tries to parse a string into an int; else returns a default value

Types

This section is empty.

Jump to

Keyboard shortcuts

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