Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func DirClean(dir string) string func FileNameClean(filename string) string func FileNameExcludeExt(filepath string) string func FileNameRewrite(filename string) string func GetDir(path string) string func PathClean(dir string) string func Split(path string) (dir, file string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DirClean ¶ func DirClean(dir string) string 仅仅针对目录名 func FileNameClean ¶ func FileNameClean(filename string) string 仅仅针对文件名 func FileNameExcludeExt ¶ func FileNameExcludeExt(filepath string) string 获取文件名除去扩展名 func FileNameRewrite ¶ func FileNameRewrite(filename string) string windows需要,由于linux的文件也要放到windows看,统一处理 func GetDir ¶ func GetDir(path string) string 获取url的目录部分 func PathClean ¶ func PathClean(dir string) string 针对带目录的完整文件名 func Split ¶ func Split(path string) (dir, file string) 返回目录名和文件名 Types ¶ This section is empty. Source Files ¶ View all Source files path.go path_unix.go Click to show internal directories. Click to hide internal directories.