windows.go 590 B

12345678910111213141516171819202122232425
  1. //go:build windows
  2. // +build windows
  3. package platform
  4. import (
  5. "path/filepath"
  6. )
  7. func LineSeparator() string {
  8. return "\r\n"
  9. }
  10. // GetAssetLocation searches for `file` in the env dir and the executable dir
  11. func GetAssetLocation(file string) string {
  12. assetPath := NewEnvFlag(AssetLocation).GetValue(getExecutableDir)
  13. return filepath.Join(assetPath, file)
  14. }
  15. // GetCertLocation searches for `file` in the env dir and the executable dir
  16. func GetCertLocation(file string) string {
  17. certPath := NewEnvFlag(CertLocation).GetValue(getExecutableDir)
  18. return filepath.Join(certPath, file)
  19. }