mirror of
https://github.com/Squibid/rph.git
synced 2025-10-19 19:34:04 +00:00
20 lines
272 B
Go
20 lines
272 B
Go
package state
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
const Name = "rph"
|
|
var CachePath string
|
|
|
|
func Setup() {
|
|
var dir, err = os.UserCacheDir()
|
|
if err != nil {
|
|
fmt.Println("Unable to get user cache directory")
|
|
os.Exit(1)
|
|
}
|
|
CachePath = filepath.Join(dir, Name)
|
|
}
|