checking in before refactoring interpolation
This commit is contained in:
15
envs/utils_windows.go
Normal file
15
envs/utils_windows.go
Normal file
@@ -0,0 +1,15 @@
|
||||
//go:build windows
|
||||
|
||||
package envs
|
||||
|
||||
import (
|
||||
"golang.org/x/sys/windows/registry"
|
||||
)
|
||||
|
||||
// interpolateString takes string s and performs environment variable interpolation/substitution on it.
|
||||
func interpolateString(s string) (subbed string, err error) {
|
||||
|
||||
subbed, err = registry.ExpandString(os.ExpandEnv(s))
|
||||
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user