Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAbsPath ¶
获取绝对路径 tmpName:绝对/相对路径,defaultName:默认路径
func GetRel ¶
https://www.cnblogs.com/malukang/p/12907945.html GetRel(uploadDir,uploadFilePath) 获取相对路径
func GetUploadFileRouterPath ¶
// 获取上传文件路径的路由地址(相对路径)
func GetUploadFileRouterPath(rootDir, filePath string) string { relPath, _ := filepath.Rel(rootDir, filePath) return path.Join(path.Base(rootDir), relPath) }
获取上传文件路径的路由地址(相对路径)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.