Only replace backslashes from toSlash.
diff --git a/util/util.go b/util/util.go index 2cc861e..a5b346f 100644 --- a/util/util.go +++ b/util/util.go
@@ -30,11 +30,7 @@ } func toSlash(v string) string { - v = strings.Replace(v, "\\", "/", -1) - if os.PathSeparator != '\\' && os.PathSeparator != '/' { - v = strings.Replace(v, string(os.PathSeparator), "/", -1) - } - return v + return strings.Replace(v, "\\", "/", -1) } // GetRootFromPackage retrives the top level package from a name.