What is GOROOT and GOPATH. Fixing the problem of go path export

What is GOROOT and GOPATH and how to fix it?


What is GOROOT and GOPATH and the problem of go path export.  I have been through this many times and have seen lot of people struggling to fix this. In this small post I will tell you how to fix this problem. Lets see what is GOROOT and GOPATH? How to install go latest version?