During development the go run tool is a convenient way to try out your code. It’s essentially a shortcut that compiles your code, creates an executable binary in your /tmp directory, and then runs this binary in one step.
Why should I use Go?
It is efficient, compiling down to one binary. Speed, Go enhances the availability and reliability of services. Go increases code readability through its simplicity. Developers can easily learn and adapt to Golang and quickly become productive.
What is Gopath?
GOPATH is a variable that defines the root of your workspace. By default, the workspace directory is a directory that is named go within your user home directory (~/go for Linux and MacOS, %USERPROFILE%/go for Windows). GOPATH stores your code base and all the files that are necessary for your development.