Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 392 Bytes
// +build !windows
package platform
import (
func ExpandEnv(s string) string {
return os.ExpandEnv(s)
func LineSeparator() string {
return "\n"
func GetToolLocation(file string) string {
const name = "v2ray.location.tool"
toolPath := EnvFlag{Name: name, AltName: NormalizeEnvName(name)}.GetValue(getExecutableDir)
return filepath.Join(toolPath, file)
You can’t perform that action at this time.