@@ -0,0 +1,16 @@
+// +build !windows
+
+package platform
+import (
+ "os"
+)
+type otherPlatformEnvironment struct {
+}
+var environmentInstance = &otherPlatformEnvironment{}
+func (e *otherPlatformEnvironment) ExpandEnv(s string) string {
+ return os.ExpandEnv(s)
@@ -0,0 +1,10 @@
+// Package platform provides platform specific functionalities.
+type environment interface {
+ ExpandEnv(s string) string
+func ExpandEnv(s string) string {
+ return environmentInstance.ExpandEnv(s)
@@ -0,0 +1,17 @@
+// +build windows
+type windowsEnvironment struct {
+var environmentInstance = &windowsEnvironment{}
+func (e *windowsEnvironment) ExpandEnv(s string) string {
+ // TODO
+ return s