3 ms·
I came from the same direction. I put gopath on a ramdisk, because its an cacge which is polluted fast with old versions. GOBIN is set to ~/.local/bin, so the i
by stop50 4y ago
I came from the same direction. I put gopath on a ramdisk, because its an cacge which is polluted fast with old versions. GOBIN is set to ~/.local/bin, so the installed go binaries are static and in the path.
fo itself has most tooling integrated:
black = go fmt
poetry = go.mod
sphinx = go doc/godoc
For linting i use revive, which i selected in vscode.
since modules are path based the directory structure has everything at the root path.
i put the files with the main function usually in cmd or one sublevel below it.
if you have multiple binaries in one repo you have to move them into their own directories or building gets messy.