Documentation
¶
Overview ¶
Package workdir 负责运行时工作目录的初始化。
目录结构固定为 ./data/{themes,plugins,uploads,cache,logs,backups}。
Index ¶
Constants ¶
View Source
const ( ThemesDirName = "themes" PluginsDirName = "plugins" UploadsDirName = "uploads" CacheDirName = "cache" LogsDirName = "logs" BackupsDirName = "backups" )
工作目录下各子目录的名称。模块引用这些常量而不是自己写字面量, 避免「themes」这种名字散落在多处、改一处漏一处。
Variables ¶
View Source
var Subdirs = []string{ThemesDirName, PluginsDirName, UploadsDirName, CacheDirName, LogsDirName, BackupsDirName}
Subdirs 是工作目录下必须存在的子目录。
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.