Documentation ¶
Index ¶
- func AwaitExit()
- func FindString(needle string, haystack []string) bool
- type GetenvValue
- func (g GetenvValue) Bool() bool
- func (g GetenvValue) JSON(target interface{}) error
- func (g GetenvValue) Number() int
- func (g GetenvValue) OrFatal() GetenvValue
- func (g GetenvValue) SafeURL() string
- func (g GetenvValue) String() string
- func (g GetenvValue) StringSlice(optionalDelimiter ...string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindString ¶
FindString returns true if needle is in haystack
Types ¶
type GetenvValue ¶
type GetenvValue struct {
// contains filtered or unexported fields
}
GetenvValue is a holder type for Getenv to translate any Getenv strings to real types
func Getenv ¶
func Getenv(key string, defaultValue ...string) GetenvValue
func (GetenvValue) Bool ¶
func (g GetenvValue) Bool() bool
func (GetenvValue) JSON ¶
func (g GetenvValue) JSON(target interface{}) error
func (GetenvValue) Number ¶
func (g GetenvValue) Number() int
func (GetenvValue) OrFatal ¶
func (g GetenvValue) OrFatal() GetenvValue
func (GetenvValue) SafeURL ¶
func (g GetenvValue) SafeURL() string
SafeURL removes any trailing slash
func (GetenvValue) String ¶
func (g GetenvValue) String() string
func (GetenvValue) StringSlice ¶
func (g GetenvValue) StringSlice(optionalDelimiter ...string) []string
Click to show internal directories.
Click to hide internal directories.