# sha256sum go1.10.3.linux-amd64.tar.gz
3. Extract the tarball
# sudo tar -C /usr/local -xzf go1.10.3.linux-amd64.tar.gz
4. Adjust the Path Variable.
# nano ~/.bash_profile
export PATH=$PATH:/usr/local/go/bin
source ~/.bash_profile
source ~/.bash_profile
5. Test Installation
a. # mkdir ~/go
b. # mkdir -p ~/go/src/hello
c. ~/go/src/hello/hello.go
package main
import "fmt"
func main() {
fmt.Printf("Hello, World\n")
}
package main
import "fmt"
func main() {
fmt.Printf("Hello, World\n")
}
d. # cd ~/go/src/hello
e. # go build
f. # ./hello