Documentation ¶
Index ¶
- func DefaultDownloadPath() string
- func DirExistsAndMkdirAll(path string) error
- func GetBusinessDbPath() string
- func GetDBPath() string
- func GetDownloadPath() string
- func GetFilesPath() string
- func GetLogsPath() string
- func GetRootPath() string
- func GetSlicePath() string
- func GetUploadPath() string
- func InitDirectories(path string) error
- func IsGorunEnv() bool
- func ObtainRootPath() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDownloadPath ¶
func DefaultDownloadPath() string
GetDefaultDownloadPath 返回操作系统的默认下载路径。 它假设用户使用的是操作系统的标准下载文件夹。
func DirExistsAndMkdirAll ¶
检查路径是否存在并且是一个目录 不存在则创建目录路径和所有尚不存在的父级。
func GetBusinessDbPath ¶ added in v0.0.3
func GetBusinessDbPath() string
GetBusinessDbPath 返回业务db目录路径
func InitDirectories ¶ added in v0.0.3
initDirectories 确保所有预定义的文件夹都存在
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.