File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,14 +81,13 @@ pub fn unsetenv(name string) int {
8181 }
8282}
8383
84- // See: https://linux.die.net/man/5/environ for unix platforms.
85- // See: https://docs.microsoft.com/bg-bg/windows/win32/api/processenv/nf-processenv-getenvironmentstrings
8684// environ returns a map of all the current environment variables.
87-
88- // TODO how to declare Virtual C globals?
89- // const C.environ &&char
90-
85+ // See: https://linux.die.net/man/5/environ for Unix platforms.
86+ // See: https://docs.microsoft.com/bg-bg/windows/win32/api/processenv/nf-processenv-getenvironmentstrings
87+ // for Windows OS.
9188pub fn environ () map [string ]string {
89+ // TODO how to declare Virtual C globals?
90+ // const C.environ &&char
9291 mut res := map [string ]string {}
9392 $if windows {
9493 mut estrings := C.GetEnvironmentStringsW ()
You can’t perform that action at this time.
0 commit comments