diff options
Diffstat (limited to 'utils/fileutils.go')
-rw-r--r-- | utils/fileutils.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/fileutils.go b/utils/fileutils.go new file mode 100644 index 0000000..6c269ca --- /dev/null +++ b/utils/fileutils.go @@ -0,0 +1,10 @@ +package utils + +import ( + "path/filepath" + "strings" +) + +func TrimTrailingSeparator(path string) string { + return strings.TrimSuffix(path, string(filepath.Separator)) +} |