1 2 3 4 5 6 7 8 9 10
package utils import ( "path/filepath" "strings" ) func TrimTrailingSeparator(path string) string { return strings.TrimSuffix(path, string(filepath.Separator)) }