paths

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDownloadPath

func DefaultDownloadPath() string

GetDefaultDownloadPath 返回操作系统的默认下载路径。 它假设用户使用的是操作系统的标准下载文件夹。

func DirExistsAndMkdirAll

func DirExistsAndMkdirAll(path string) error

检查路径是否存在并且是一个目录 不存在则创建目录路径和所有尚不存在的父级。

func GetBusinessDbPath added in v0.0.3

func GetBusinessDbPath() string

GetBusinessDbPath 返回业务db目录路径

func GetDBPath added in v0.0.3

func GetDBPath() string

GetDBPath 返回数据库目录路径

func GetDownloadPath added in v0.0.3

func GetDownloadPath() string

GetDownloadPath 返回下载目录路径

func GetFilesPath added in v0.0.3

func GetFilesPath() string

GetFilesPath 返回文件目录路径

func GetLogsPath added in v0.0.3

func GetLogsPath() string

GetLogsPath 返回日志目录路径

func GetRootPath added in v0.0.3

func GetRootPath() string

GetRootPath 返回根路径

func GetSlicePath added in v0.0.3

func GetSlicePath() string

GetSlicePath 返回切片目录路径

func GetUploadPath added in v0.0.3

func GetUploadPath() string

GetUploadPath 返回上传目录路径

func InitDirectories added in v0.0.3

func InitDirectories(path string) error

initDirectories 确保所有预定义的文件夹都存在

func IsGorunEnv

func IsGorunEnv() bool

是否go run运行环境

func ObtainRootPath

func ObtainRootPath() string

获取根目录

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL