windows.go 584 B

12345678910111213141516171819202122
  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 searches for `file` in the env dir and the executable dir
  9. func GetAssetLocation(file string) string {
  10. assetPath := NewEnvFlag(AssetLocation).GetValue(getExecutableDir)
  11. return filepath.Join(assetPath, file)
  12. }
  13. // GetCertLocation searches for `file` in the env dir and the executable dir
  14. func GetCertLocation(file string) string {
  15. certPath := NewEnvFlag(CertLocation).GetValue(getExecutableDir)
  16. return filepath.Join(certPath, file)
  17. }