![]() ![]() To specify a workspace (location where you store your Go code) it needs to set Go environment variable GOPATH.īy default, GOPATH is $HOME/go, but you can change it to any location you want (except Go installation directory). $ sudo tar -C /usr/local -xvzf go1.11.3.įor a system-wide installation of Go it needs to add the following line at the bottom of /etc/profile file: Install Go on MacOS, Ubuntu, CentOSĭownload an archive with the latest version of Golang for your platform from the official download page (the current version of Go is 1.11.3).Įxtract the tar archive files into /usr/local (default Go installation directory): In this tutorial i’ll show how to install Go on MacOS, Ubuntu, CentOS and how to create a simple “Hello world!” program on Golang. Go language is designed for building simple, fast and reliable software. ![]() ![]() What is Go? Go or Golang is a programming language created by Google in 2009 by Robert Griesemer, Rob Pike, and Ken Thompson. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |