Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Paths = New()
Paths is the Path singleton on which the top level functions from this package operate.
Functions ¶
Types ¶
type FileType ¶
type FileType string
FileType is an enumeration type representing the file types. Currently existing file types are: Home, Config, Data
type Path ¶
Path 位置路径目录
func (*Path) InitPaths ¶
InitPaths sets the default paths in the configuration based on CLI flags, configuration file and default values. It also tries to create the data path with mode 0750 and returns an error on failure.
Click to show internal directories.
Click to hide internal directories.