diff options
| author | physcik <mynameisgennadiy@vk.com> | 2026-03-27 17:00:06 +0500 |
|---|---|---|
| committer | physcik <mynameisgennadiy@vk.com> | 2026-03-27 17:00:06 +0500 |
| commit | ed55381e39b48d7ec98da59a922f61e6ad390f19 (patch) | |
| tree | 76c60540d80f955856ee9ba7daeeba92353f5122 | |
| parent | d76606e60d8a72d6d82f8deb086e7ac0558b6b14 (diff) | |
Test windows(ew) support
| -rw-r--r-- | engine/Utils/Files.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/Utils/Files.go b/engine/Utils/Files.go index fbdf1b7..6a922f3 100644 --- a/engine/Utils/Files.go +++ b/engine/Utils/Files.go @@ -4,6 +4,7 @@ import ( "encoding/json" "fmt" "os" + "runtime" ) func ReadJSONfromFile(fileLocation string, v any) error { @@ -19,6 +20,9 @@ func ReadJSONfromFile(fileLocation string, v any) error { } func JoinFileLocation(baseDirLocation string, appendix string) string { + if runtime.GOOS == "windows" { + return fmt.Sprintf("%v\\%v", baseDirLocation, appendix) + } return fmt.Sprintf("%v/%v", baseDirLocation, appendix) } |
