iteration over a map is random. Need to copy into the []string, sort, then then use that for range.
// PrintEnvs prints the generated environment variables to the std out.
func (e *EnvironmentLoader) PrintEnvs(s interface{}) {
strct := structs.New(s)
strctMap := strct.Map()
prefix := e.getPrefix(strct)
for key, val := range strctMap {
field := strct.Field(key)
e.printField(prefix, field, key, val)
}
}
from env.go
iteration over a map is random. Need to copy into the []string, sort, then then use that for range.