Go is a programming language developed by Google that is statically strong-typed, compiled, and styled, and has a garbage collection function. To facilitate search and identification, it is sometimes referred to as Golang
Record how to install locales on Raspberry Pi
First step: Download the installation package
HTTPS://golang.org/dl/
Here we are going to install in Raspberry Pi, so download the version shown
Step Two: Install
Extract the downloaded source package to the/usr/local directory
sudo tar-c/usr/local/-xzf go1.9.2.linux-armv6l.tar.gz
Add the/usr/local/go/bin directory to the PATH environment variable:
Export path= $PATH:/usr/local/go/bin
Note: Under MAC system you can use the. Pkg end of the installation package directly double-click to complete the installation, the installation directory under/usr/local/go/.
The third step: write a Hello World
Vim Hello.go
The code reads as follows:
" FMT " Func Main () { fmt. Println ("HelloWorld");}
Try running it.
Operation Result:
Go language. Raspberry Pi. Environment Installation and testing