func (l *Loader) Load() error {
	for _, e := range os.Environ() {
		s := strings.SplitN(e, "=", 2)
		k, v := s[0], s[1]
		v, err := l.load(v)
		if err != nil {
			return errors.New("failed to load env var " + k + ": " + err.Error())
		}
		os.Setenv(k, v)
	}
	return nil
}
// Load iterates through all environmental variables and recursively derefs
// their values appropriately.
Load iterates through all environmental variables and recursively derefs
their values appropriately.
// Load iterates through all environmental variables and recursively derefs // their values appropriately .
func (l *Loader) Load() error {
	for _, e := range os.Environ() {
		s := strings.SplitN(e, "=", 2)
		k, v := s[0], s[1]
		v, err := l.load(v)
		if err != nil {
			return errors.New("failed to load env var " + k + ": " + err.Error())
		}
		os.Setenv(k, v)
	}
	return nil
}
func ( l * Loader ) Load ( ) error { for _ , e := range os . Environ ( ) { s := strings . SplitN ( e , " " , 2 ) k , v := s [ 0 ] , s [ 1 ] v , err := l . load ( v ) if err != nil { return errors . New ( " " + k + " " + err . Error ( ) ) } os . Setenv ( k , v ) } return nil }
Load iterates through all environmental variables and recursively derefs
their values appropriately.
Load iterates through all environmental variables and recursively derefs their values appropriately .