Codebase list golang-github-kyoh86-xdg / a4f1666f-e7bf-4551-b4f8-cdeb2f47c537/upstream cache_win.go
a4f1666f-e7bf-4551-b4f8-cdeb2f47c537/upstream

Tree @a4f1666f-e7bf-4551-b4f8-cdeb2f47c537/upstream (Download .tar.gz)

cache_win.go @a4f1666f-e7bf-4551-b4f8-cdeb2f47c537/upstreamraw · history · blame

// +build windows

package xdg

import (
	"os"
	"path/filepath"
)

// CacheHome returns a XDG cache directory (XDG_CACHE_HOME).
func CacheHome() string {
	return alternate(os.Getenv(CacheHomeEnv), filepath.Join(os.Getenv("LOCALAPPDATA"), "cache"))
}