Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandEnv ¶
func ExpandEnv(text string, options ...ExpandOption) string
func GetEnvWithDefault ¶
GetEnvWithDefault get env and return default value if env not found eg:
// Find the value of 'KEY' in env, and return 'HELLO' if 'KEY' not existed. GetEnvWithDefault("KEY:HELLO")
Types ¶
type ExpandOption ¶
type ExpandOption func(o *expandOptions)
func WithExpandLeft ¶
func WithExpandLeft(left []byte) ExpandOption
func WithExpandRight ¶
func WithExpandRight(right []byte) ExpandOption
Click to show internal directories.
Click to hide internal directories.