| commit | 426b782995dc6b2399830f9190b246c18f2dab69 | [log] [tgz] |
|---|---|---|
| author | Josh Rickmar <jrick@companyzero.com> | Mon Apr 25 11:33:38 2016 -0400 |
| committer | Josh Rickmar <jrick@companyzero.com> | Mon Apr 25 11:33:38 2016 -0400 |
| tree | bc0cebfba1834428d75e628f6aaa09958ff901bc | |
| parent | ca1f1e20041b4ce7f6f13256e4fb3f3c3de83991 [diff] |
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.