Documentation
¶
Index ¶
- func CacheDir() folder.Folder
- func CacheFile(folder folder.Folder) file.File
- func ConfigDir() folder.Folder
- func ConfigFile() file.File
- func DownloadDir() folder.Folder
- func GodylCreateRandomDir() (folder.Folder, error)
- func GodylCreateRandomDirIn(dir folder.Folder) (folder.Folder, error)
- func GodylDir(paths ...string) folder.Folder
- func Prefix() string
- func UserRuntimeDir() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFile ¶ added in v0.0.13
ConfigFile returns the first existing “godyl” configuration file it finds.
Search order:
- $CONFIG_DIR/godyl.yaml
- $CONFIG_DIR/godyl.yml
- ./godyl.yml (project root)
If none exist, it falls back to $CONFIG_DIR/godyl.yml, allowing callers to create or write it later.
func DownloadDir ¶ added in v0.0.11
DownloadDir returns the download directory for Godyl.
func GodylCreateRandomDir ¶
GodylCreateRandomDir creates a random directory in the Godyl temporary directory.
func GodylCreateRandomDirIn ¶
GodylCreateRandomDirIn creates a random directory in the specified directory.
func GodylDir ¶
GodylDir returns the temporary directory for Godyl. Optionally pass in subdirectories to create a path within the Godyl directory.
func UserRuntimeDir ¶ added in v0.0.11
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.