Debian 11 Bullseye
Sponsored Link

Go : Install2021/09/23

 
Install Go.
[1] Install Go and verify to create test program.
root@dlp:~#
apt -y install golang
root@dlp:~#
go version

go version go1.15.9 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