()
| 28 | } |
| 29 | |
| 30 | func (e Environment) String() string { |
| 31 | lines := []string{} |
| 32 | |
| 33 | for k, v := range e { |
| 34 | lines = append(lines, fmt.Sprintf("%s=%s", k, v)) |
| 35 | } |
| 36 | |
| 37 | sort.Strings(lines) |
| 38 | |
| 39 | return strings.Join(lines, "\n") |
| 40 | } |
| 41 | |
| 42 | // SortedNames returns a slice of environment variables sorted by name. |
| 43 | // func (e Environment) SortedNames() []string { |
no outgoing calls