Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review/71 #72

Merged
merged 4 commits into from
Jun 14, 2024
Merged

Review/71 #72

merged 4 commits into from
Jun 14, 2024

Conversation

savedra1
Copy link
Owner

@ccoVeille 🫡

@savedra1 savedra1 merged commit 15a8ab8 into main Jun 14, 2024
2 checks passed
@ccoVeille
Copy link
Contributor

You are not in a hurry to merge things you know 😅

@savedra1
Copy link
Owner Author

@ccoVeille 😬

if dir := os.Getenv("XDG_CONFIG_HOME"); dir != "" {
return dir, nil
}
return os.UserConfigDir()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was enough in fact, you found the right one

Look here
https://pkg.go.dev/os#UserConfigDir

Then, how it's implemented

https://cs.opensource.google/go/go/+/refs/tags/go1.22.4:src/os/file.go;l=509

@ccoVeille ccoVeille mentioned this pull request Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants