Codebase list golang-github-kyoh86-xdg / fresh-snapshots/main cache_win.go
fresh-snapshots/main

Tree @fresh-snapshots/main (Download .tar.gz)

cache_win.go @fresh-snapshots/mainraw · 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"))
}