windows.go 384 B

1234567891011121314151617181920
  1. // +build windows
  2. package platform
  3. import "path/filepath"
  4. func ExpandEnv(s string) string {
  5. // TODO
  6. return s
  7. }
  8. func LineSeparator() string {
  9. return "\r\n"
  10. }
  11. func GetToolLocation(file string) string {
  12. const name = "v2ray.location.tool"
  13. toolPath := EnvFlag{Name: name, AltName: NormalizeEnvName(name)}.GetValue(getExecutableDir)
  14. return filepath.Join(toolPath, file+".exe")
  15. }