gitforgefs/fs/utils.go

11 lines
148 B
Go

package fs
import (
"path/filepath"
"strings"
)
func stripSlash(fn string) string {
return strings.TrimRight(fn, string(filepath.Separator))
}