Documentation ¶
Index ¶
- func BasePath() string
- func ConfigName(filename string) string
- func ConfigPath() string
- func DirExists(path string) bool
- func Exists(path string) bool
- func FileExists(path string) bool
- func IsRoot() bool
- func ServerConfigName(program, filename string) string
- func SetBasePath()
- func SetConfigPath(program string)
- func SetServerConfigPath(program string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigName ¶
GetConfigName gets the correct full path of the configuration file for command line tools.
func ConfigPath ¶
func ConfigPath() string
func DirExists ¶
DirExists checks for the existence of a directory. It will return false if a file with that name exists.
func FileExists ¶
FileExists checks for the existence of a file. It will return false if a directory with that name exists.
func ServerConfigName ¶
GetServerConfigName gets the correct full path of the configuration file for servers.
func SetBasePath ¶
func SetBasePath()
SetBasePath builds the appropriate path for saving program-specific directories.
func SetConfigPath ¶
func SetConfigPath(program string)
SetConfigPath builds the path to the command line program config directory.
func SetServerConfigPath ¶ added in v0.5.0
func SetServerConfigPath(program string)
SetServerConfigPath builds the path to the server config directory, bypassing automatically selected paths.
Types ¶
This section is empty.