Unset GOROOT – the go tools know where they are supposed to be and you rarely need to set it.
You’ve set it to /home/user/go and unless you build go in there that is unlikely to be the right place to find the fmt package.
Unset GOROOT – the go tools know where they are supposed to be and you rarely need to set it.
You’ve set it to /home/user/go and unless you build go in there that is unlikely to be the right place to find the fmt package.