Ubuntu 22.04
Sponsored Link

Go : Install2022/08/29

 
Install Go Language.
[1] Install Go Language and try to run test app.
root@dlp:~#
apt -y install golang
root@dlp:~#
go version

go version go1.18.1 linux/amd64
# verify to create test program

root@dlp:~# cat > helloworld.go <<'EOF'
package main
import "fmt"
func main() {
    fmt.Println("Hello Go World !")
}
EOF 

root@dlp:~#
go run helloworld.go

Hello Go World !
# build and run

root@dlp:~#
go build helloworld.go

root@dlp:~#
./helloworld

Hello Go World !
Matched Content