mirror of https://github.com/v2ray/v2ray-core
V2Ray
9 years ago
3 changed files with 43 additions and 0 deletions
@ -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.
|
||||
package platform |
||||
|
||||
type environment interface { |
||||
ExpandEnv(s string) string |
||||
} |
||||
|
||||
func ExpandEnv(s string) string { |
||||
return environmentInstance.ExpandEnv(s) |
||||
} |
Loading…
Reference in new issue