data

package
v0.1.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package data provides utilities for managing configuration and cache files and directories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir

func CacheDir() folder.Folder

CacheDir returns the cache directory for Godyl.

func CacheFile

func CacheFile(folder folder.Folder) file.File

CacheFile returns the cache file from the specified folder.

func ConfigDir

func ConfigDir() folder.Folder

ConfigDir returns the config directory for Godyl.

func ConfigFile

func ConfigFile() file.File

ConfigFile returns the first existing “godyl” configuration file it finds.

Search order:

  1. ./godyl.{yaml,yml}
  2. $CONFIG_DIR/godyl.{yaml,yml}
  3. ./godyl.yml

func CreateUniqueDirIn

func CreateUniqueDirIn(paths ...string) (folder.Folder, error)

CreateUniqueDirIn creates a unique directory in the specified path. If no path is specified, it uses the system temporary directory.

func DownloadDir

func DownloadDir() folder.Folder

DownloadDir returns the temporary directory for downloads.

func GoDir

func GoDir() folder.Folder

GoDir returns the cache directory for Go installations. Defaults to temp directory if user cache directory cannot be determined.

func Prefix

func Prefix() string

Prefix returns the prefix used for Godyl temporary directories.

func UserDataDir

func UserDataDir() folder.Folder

UserDataDir returns the user data directory for Godyl.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL