79427421

Date: 2025-02-10 14:45:32
Score: 1.5
Natty:
Report link

In recent go versions, the following crossplatform functions to obtain user-specific directories are available in the os package:

func TempDir() string

func UserCacheDir() (string, error) (added in go1.11)

func UserHomeDir() (string, error) (added in go1.12)

func UserConfigDir() (string, error) (added in go1.13)

OP wants

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: qciccoretti