package fs import "path/filepath" const sep = "/" func Clean(path string) string { return filepath.FromSlash(filepath.Clean(sep + path)) } func File(path string) string { _, f := filepath.Split(Clean(path)) return f }