gohls icon indicating copy to clipboard operation
gohls copied to clipboard

Use linux default cache folder (and make it configurable)

Open genofire opened this issue 6 years ago • 1 comments

For user running create a subfolder into ~/.cache (e.g. ~/.cache/gohls) and for global / run as service /var/cache/.

But maybe somebody want to cange it into a folder of /tmp ... could you make it configurable ?

genofire avatar Feb 17 '19 12:02 genofire

Use for it:

cacheDir, err:= os.UserCacheDir()
if err == nil {
  cacheDir = path.Join(cacheDir, "gohls")
} else {
  your fallback ... or panic
}

(see docu)

genofire avatar Feb 24 '19 21:02 genofire