diff options
-rw-r--r-- | utils/fileutils.go | 10 | ||||
-rw-r--r-- | utils/fileutils_test.go | 15 | ||||
-rw-r--r-- | utils/io.go (renamed from utils/ioutils.go) | 0 |
3 files changed, 0 insertions, 25 deletions
diff --git a/utils/fileutils.go b/utils/fileutils.go deleted file mode 100644 index 6c269ca..0000000 --- a/utils/fileutils.go +++ /dev/null @@ -1,10 +0,0 @@ -package utils - -import ( - "path/filepath" - "strings" -) - -func TrimTrailingSeparator(path string) string { - return strings.TrimSuffix(path, string(filepath.Separator)) -} diff --git a/utils/fileutils_test.go b/utils/fileutils_test.go deleted file mode 100644 index 176d856..0000000 --- a/utils/fileutils_test.go +++ /dev/null @@ -1,15 +0,0 @@ -package utils - -import ( - "path/filepath" - "testing" -) - -func TestTrimTrailingSeparator(t *testing.T) { - if TrimTrailingSeparator("test"+string(filepath.Separator)) != "test" { - t.Error("Seprator should have been trimmed") - } - if TrimTrailingSeparator("test") != "test" { - t.Error("Path should not have changed") - } -} diff --git a/utils/ioutils.go b/utils/io.go index fcc341e..fcc341e 100644 --- a/utils/ioutils.go +++ b/utils/io.go |