Set up golang project on m3 (2025)

1. Golang download Download pkg files from golang website. I'll follow current k8s golang version, not patch version. The package installs the Go distribution to /usr/local/go. The package should put the /usr/local/go/bin directory in your PATH environment variable. I'll add binary Go path and GOPATH to ~/.zshrc ❯ echo -e "\n# Set Go environment variables\nexport GOPATH=\$HOME/go\nexport PATH=\$PATH:/usr/local/go/bin:\$GOPATH/bin" >> ~/.zshrc ❯ source ~/.zshrc # check ❯ echo $GOPATH ❯ echo $PATH Then check golang version ❯ go version go version go1.23.6 darwin/arm64 Download go-blueprint easy setup Download go-bleprint globally. ❯ go install github.com/melkeydev/go-blueprint@latest # check ❯ go-blueprint version Go Blueprint CLI version: v0.10.5 Create command via ui by checking options what you want to build. Go Blueprint UI FYI My project name is athena Create your project.

Feb 5, 2025 - 03:10
 0
Set up golang project on m3 (2025)

1. Golang download

Download pkg files from golang website.

I'll follow current k8s golang version, not patch version.

  • The package installs the Go distribution to /usr/local/go.
  • The package should put the /usr/local/go/bin directory in your PATH environment variable.

I'll add binary Go path and GOPATH to ~/.zshrc

echo -e "\n# Set Go environment variables\nexport GOPATH=\$HOME/go\nexport PATH=\$PATH:/usr/local/go/bin:\$GOPATH/bin" >> ~/.zshrc
❯ source ~/.zshrc

# checkecho $GOPATHecho $PATH

Then check golang version

❯ go version
go version go1.23.6 darwin/arm64

Download go-blueprint

easy setup

Download go-bleprint globally.

❯ go install github.com/melkeydev/go-blueprint@latest

# check
❯ go-blueprint version
Go Blueprint CLI version: v0.10.5

Create command via ui by checking options what you want to build.

Go Blueprint UI

Image description

FYI My project name is athena

Create your project.