Default will return the default environment variables based on the process attributes provided. Defaults to syscall.Environ() on all platforms other than Windows.
(sys *forkexec.SysProcAttr)
| 19 | // Defaults to syscall.Environ() on all platforms |
| 20 | // other than Windows. |
| 21 | func Default(sys *forkexec.SysProcAttr) ([]string, error) { |
| 22 | return syscall.Environ(), nil |
| 23 | } |