DEV Community

제민욱
제민욱

Posted on

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
Enter fullscreen mode Exit fullscreen mode

Then check golang version

❯ go version
go version go1.23.6 darwin/arm64
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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.

Top comments (0)