github.com/imannamdari/v2ray-core/v5@v5.0.5/common/platform/windows.go (about) 1 //go:build windows 2 // +build windows 3 4 package platform 5 6 import "path/filepath" 7 8 func LineSeparator() string { 9 return "\r\n" 10 } 11 12 // GetAssetLocation search for `file` in the excutable dir 13 func GetAssetLocation(file string) string { 14 const name = "v2ray.location.asset" 15 assetPath := NewEnvFlag(name).GetValue(getExecutableDir) 16 return filepath.Join(assetPath, file) 17 }