Go : Install2024/06/21 |
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.22.2 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 ! |