![]() The following commands show how to create the workspace:Īfterwards, set the GOPATH environment variable to point to the new workspace. For this tutorial, I’m calling the workspace gostuff, create it and ensure that it’s in your PATH. If Go can run it successfully, then Go is truly set to go. Here we’ll set up a Go workspace and build an Hello World! program. Because its parent directory – /usr/bin – is already in your PATH. The Go executable is expected to be in /usr/local/go, but on both Linux Mint 18/18.1 and Ubuntu 16.04/16.10, it’s actually installed in another (custom) location – /usr/bin/go. To install Go, fire up a terminal and type the following commands: In this tutorial, we’ll go through the process of installing it on Linux Mint 18 and 18.1 and Ubuntu 16.04 and 16.10. Before then, installing it on your favorite Linux distribution is a breeze, as its installation packages are in official package repositories. Unlike Python, it doesn’t come pre-installed on most Linux distributions, but I expect that to change soon. ![]() Docker and many of its tools are written in Go. Released in late-2009, it has since become a very popular programming language. Go, or Golang, is an open source programming language from Google.
0 Comments
Leave a Reply. |