From ed55381e39b48d7ec98da59a922f61e6ad390f19 Mon Sep 17 00:00:00 2001 From: physcik Date: Fri, 27 Mar 2026 17:00:06 +0500 Subject: Test windows(ew) support --- engine/Utils/Files.go | 4 ++++ 1 file changed, 4 insertions(+) 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) } -- cgit v1.3