commit this WIP stuff to a feature branch
This commit is contained in:
26
envs/funcs_staticenv_windows.go
Normal file
26
envs/funcs_staticenv_windows.go
Normal file
@@ -0,0 +1,26 @@
|
||||
//go:build windows
|
||||
|
||||
package envs
|
||||
|
||||
import (
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
func (s *StaticEnv) platChecks() (err error) {
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
func (s *StaticEnv) setProcVal(key, value string) (err error) {
|
||||
|
||||
err = windows.Setenv(key, value)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
func (s *StaticEnv) unsetProcVal(key string) (err error) {
|
||||
|
||||
err = windows.Unsetenv(key)
|
||||
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user