nixnib 0001.0
sudo dnf --enablerepo=devel install wget tar
wget https://go.dev/dl/go1.23.6.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.23.6.linux-amd64.tar.gz
vim ~/.bash_profile
export PATH=$PATH:/usr/local/go/bin
source ~/.bash_profile
go version
mkdir go && cd go
mkdir src pkg bin test
cd test
vim test.go
:
import "fmt"
func main() {
fmt.Println("test")
}
go build test.go
go run test.go
./test
Top comments (0)