Debian 12 bookworm
Sponsored Link

Go : Install2023/07/14

 
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.19.8 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