Comment Comment by olowe Not sure about use in the Go community at large but Go introduced os.UserConfigDir[1] which is portable across Windows, macOS, Plan 9 and Linux/BSD as per XDG back in 2019. Also CacheDir.[1]: https://pkg.go.dev/os#UserConfigDir parent olowe 3 months ago
[1]: https://pkg.go.dev/os#UserConfigDir