platformdir

package
v0.1.62 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package platformdir resolves the OS-conventional per-user directories for GoModel's durable data and caches, used when no explicit path is configured. Binary installs (install.sh / Homebrew / install.ps1) run from arbitrary working directories, so CWD-relative defaults would scatter state; these follow each platform's convention instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir

func CacheDir() (string, error)

CacheDir returns the directory for re-creatable caches such as the model catalog:

Linux    $XDG_CACHE_HOME/gomodel (default ~/.cache/gomodel)
macOS    ~/Library/Caches/gomodel
Windows  %LocalAppData%\gomodel\cache

func DataDir

func DataDir() (string, error)

DataDir returns the directory for durable application data such as the SQLite database:

Linux    $XDG_DATA_HOME/gomodel (default ~/.local/share/gomodel)
macOS    ~/Library/Application Support/gomodel
Windows  %LocalAppData%\gomodel

Types

This section is empty.

Jump to

Keyboard shortcuts

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