Golang

If project can’t build with race detector

You’ll get errors like this go build math/bits: mkdir /usr/lib/go-1.12/pkg/linux_amd64_race: permission denied

To fix, run sudo go install -race std

if Goland IDE has no shortcut in Ubuntu

Solution for all users:

sudo ln -s /snap/goland/current/meta/gui/goland.desktop /usr/share/applications/

For current user only:

ln -s /snap/goland/current/meta/gui/goland.desktop ~/.local/share/applications