DEV Community

loading...
Cover image for Easiest way to Install Go on Linux

Easiest way to Install Go on Linux

codenoid_ profile image Rubi ・1 min read

Go (golang for seo-friendliness) is an open-source and lower-level programming language designed to enable users to easily write simple, reliable, and highly efficient computer programs.

Install Latest Go on Linux machine

It's really easy and hassle-free!, just execute this command below

curl -fsSLo- https://s.id/golang-linux | bash
Enter fullscreen mode Exit fullscreen mode

Done!

the ~/go is your $GOROOT folder.

I suggest you to start your project outside $GOROOT directory, idk, maybe ~/Document/project ?

Update Go on Linux machine

  1. Delete existing $GOROOT directory (~/go?)
  2. Install "New" Latest Go version with the command above :)

And if you are new in Go, I suggest you to head up to tour.golang.org

Bash script source: github.com/codenoid/install-latest-go-linux

Happy Going!

Discussion (1)

pic
Editor guide
Collapse
codenoid_ profile image
Rubi Author

Stay tune!, I will post new tutorial on "How to init your Go project"