doas make install
Discussion
lol, no, gfy
go install .
or
go install ./cmd/programname/.
i should not have to get root to fucking install an application ffs
export GOBIN=$HOME/.local/bin
export PATH=$GOBIN:$PATH
or GTFO
in my opinion, an entire operating system could be built on this one tool, if only the hipsters and the greybeards would see the sense of the middle way
I admit was really impressed when I discovered that I was compiling and installing binaries in userspace by default.
With makefiles you can just "make install", it could be problematic just with libraries that need to be eventually symlinked in root. Binaries can be installed to .local/bin in userspace and most of the time they just work, you need to see if the path is exposed as env variable and they will act as expected and even pop-up in the various DE- menus...