Documentation ¶
Index ¶
- Constants
- Variables
- func AppConfigDirOrDefault(defaultAppConfigDir string, toolName string) string
- func GetFiles(root string) ([]string, error)
- func HomeDirOrDefault(defaultDirectory string) string
- func IsUnixOS() bool
- func IsWindowsOS() bool
- func MigrateDir(sourceDir string, destinationDir string) error
- func UserConfigDirOrDefault(defaultConfigDir string) string
- type PathInfo
Constants ¶
View Source
const ( UnixPathSeparator = "/" WindowsPathSeparator = "\\" )
Variables ¶
View Source
var Separator = string(os.PathSeparator)
Separator evaluated at runtime
Functions ¶
func AppConfigDirOrDefault ¶ added in v0.0.37
AppConfigDirOrDefault returns the app config directory
func HomeDirOrDefault ¶
HomeDirectory returns the home directory or defaultDirectory in case of error
func IsWindowsOS ¶
func IsWindowsOS() bool
func MigrateDir ¶ added in v0.0.37
MigrateDir moves all files from sourceDir to destinationDir and removes sourceDir
func UserConfigDirOrDefault ¶ added in v0.0.37
UserConfigDirOrDefault returns the user config directory or defaultConfigDir in case of error
Types ¶
Click to show internal directories.
Click to hide internal directories.