Can I delete ~/go?
- Vous devez vous identifier ou créer un compte pour écrire des commentaires
I built and installed a few Go programs. Is it safe to remove ~/go or do I need to leave it there?
Programs installed: gmnitohtml, Kiln.
It depends on how you installed these Go programs. By default, when you install a Go program using go install, it places the compiled binary in ~/go/bin/. If you’ve already moved the binaries to another location, then it could be safe to remove ~/go. However, if you haven't moved them, deleting ~/go will also remove the installed binaries.
You can also adjust your GOPATH environment variable if you want Go to use a different location than ~/go: https://go.dev/wiki/SettingGOPATH