A command-line tool to quickly scaffold new Go projects with a standardized structure and configuration.
- Creates a new Go project with a single command
- Sets up proper module naming and directory structure
- Initializes git repository
- Configures go modules automatically
- Installs dependencies
You can install gog directly using Go:
go install github.com/mohamedalosaili/gog@latestAfter installation, ensure the Go bin directory is in your PATH:
Add this line to your ~/.bashrc, ~/.zshrc, or equivalent shell configuration file:
open ~/.bashrc/~/.zshrc file
nano ~/.bashrc
#or
nano ~/.zshrcAdd this line to the file:
export PATH=$PATH:$(go env GOPATH)/bingog new <project-name>