github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/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 }