Documentation
¶
Overview ¶
Package data provides utilities for managing configuration and cache files and directories.
Index ¶
- func CacheDir() folder.Folder
- func CacheFile(folder folder.Folder) file.File
- func ConfigDir() folder.Folder
- func ConfigFile() file.File
- func CreateUniqueDirIn(paths ...string) (folder.Folder, error)
- func DownloadDir() folder.Folder
- func GoDir() folder.Folder
- func Prefix() string
- func UserDataDir() folder.Folder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFile ¶
ConfigFile returns the first existing “godyl” configuration file it finds.
Search order:
- ./godyl.{yaml,yml}
- $CONFIG_DIR/godyl.{yaml,yml}
- ./godyl.yml
func CreateUniqueDirIn ¶
CreateUniqueDirIn creates a unique directory in the specified path. If no path is specified, it uses the system temporary directory.
func DownloadDir ¶
DownloadDir returns the temporary directory for downloads.
func GoDir ¶
GoDir returns the cache directory for Go installations. Defaults to temp directory if user cache directory cannot be determined.
func UserDataDir ¶
UserDataDir returns the user data directory for Godyl.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.