func NewEnvironment() *environment {
	osEnv := os.Environ()
	e := &environment{
		env: make(map[string]interface{}, len(osEnv)),
	}
	for _, env := range osEnv {
		kv := strings.Split(env, "=")
		if len(kv) == 2 && len(kv[0]) > 0 && len(kv[1]) > 0 {
			kv[0] = strings.Replace(kv[0], "-", ".", -1)
			kv[0] = strings.Replace(kv[0], "_", ".", -1)
			e.env[kv[0]] = kv[1]
		}
	}
	return e
}
// NewEnvironment constructor reads/stores os.Environ() for use by OverrideFromEnvironment() method.
NewEnvironment constructor reads/stores os.Environ() for use by OverrideFromEnvironment() method.
// NewEnvironment constructor reads / stores os . Environ () for use by OverrideFromEnvironment () method .
func NewEnvironment() *environment {
	osEnv := os.Environ()
	e := &environment{
		env: make(map[string]interface{}, len(osEnv)),
	}
	for _, env := range osEnv {
		kv := strings.Split(env, "=")
		if len(kv) == 2 && len(kv[0]) > 0 && len(kv[1]) > 0 {
			kv[0] = strings.Replace(kv[0], "-", ".", -1)
			kv[0] = strings.Replace(kv[0], "_", ".", -1)
			e.env[kv[0]] = kv[1]
		}
	}
	return e
}
func NewEnvironment ( ) * environment { osEnv := os . Environ ( ) e := & environment { env : make ( map [ string ] interface { } , len ( osEnv ) ) , } for _ , env := range osEnv { kv := strings . Split ( env , " " ) if len ( kv ) == 2 && len ( kv [ 0 ] ) > 0 && len ( kv [ 1 ] ) > 0 { kv [ 0 ] = strings . Replace ( kv [ 0 ] , " " , " " , - 1 ) kv [ 0 ] = strings . Replace ( kv [ 0 ] , " " , " " , - 1 ) e . env [ kv [ 0 ] ] = kv [ 1 ] } } return e }
NewEnvironment constructor reads/stores os.Environ() for use by OverrideFromEnvironment() method.
NewEnvironment constructor reads / stores os . Environ () for use by OverrideFromEnvironment () method .