windows.go 367 B

1234567891011121314151617
  1. //go:build windows
  2. // +build windows
  3. package platform
  4. import "path/filepath"
  5. func LineSeparator() string {
  6. return "\r\n"
  7. }
  8. // GetAssetLocation search for `file` in the excutable dir
  9. func GetAssetLocation(file string) string {
  10. const name = "v2ray.location.asset"
  11. assetPath := NewEnvFlag(name).GetValue(getExecutableDir)
  12. return filepath.Join(assetPath, file)
  13. }