Установка Golang
Arch
sudo pacman -Syu
sudo pacman -S go
Ubuntu
sudo apt update
sudo apt upgrade
sudo apt install golang-go
termux
apt update -y
apt upgrade -y
pkg install golang
go version
go run 1.go
go build 1.go
nano hello.go
package main
import "fmt"
func main() {
fmt.Println("Hello world")
}
go build ./hello.go
./hello
OR
go run ./hello.go
In windows
https://go.dev/doc/install