Create an environment variable of the form key=value.
(key, value string)
| 214 | |
| 215 | // Create an environment variable of the form key=value. |
| 216 | func envPair(key, value string) string { |
| 217 | return fmt.Sprintf("%s=%s", key, value) |
| 218 | } |
| 219 | |
| 220 | func goEnv() (ret []string) { |
| 221 | ret = slices.Clone(os.Environ()) |