File: cache_darwin.go

package info (click to toggle)
golang-github-kyoh86-xdg 1.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 184 kB
  • sloc: makefile: 13
file content (12 lines) | stat: -rw-r--r-- 200 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
// +build darwin

package xdg

import (
	"os"
)

// CacheHome returns a XDG cache directory (XDG_CACHE_HOME).
func CacheHome() string {
	return altHome(os.Getenv(CacheHomeEnv), "Library", "Caches")
}