Repositório de estudos GoLang.
curl -OL https://golang.org/dl/go1.20.1.linux-amd64.tar.gz
sha256sum go1.20.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xvf go1.20.1.linux-amd64.tar.gz
nano ~/.zshrc
# Cria pasta $HOME/goVenzel
# Insere
export GOROOT=/usr/local/go
export GOPATH=$HOME/goVenzel
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
{
"go.gopath": "/usr/local/go/bin"
"[go]": {
"editor.insertSpaces": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "golang.go"
},
}
source ~/.zshrc
go version
package main
import (
"fmt"
)
func main() {
fmt.Println("ok!")
}
go run main.go
go build main.go
./main
- [Go] - Go Team at Google (Possui o intelisense e etc)
go mod init gamer
go get github.com/fatih/color