diff --git a/path_windows.go b/path_windows.go index 587dcd9..9c34802 100644 --- a/path_windows.go +++ b/path_windows.go @@ -8,5 +8,5 @@ import ( ) func getRealPath(path string) string { - return "/" + strings.Replace(strings.Replace(path, ":", "", -1), "\\", "/", -1) + return "/" + strings.ReplaceAll(strings.ReplaceAll(path, ":", ""), "\\", "/") }