Skip to content

A command-line tool to quickly scaffold new Go projects with a standardized structure and configuration.

Notifications You must be signed in to change notification settings

MohamedAlosaili/gog

Repository files navigation

gog - Go Generator CLI

A command-line tool to quickly scaffold new Go projects with a standardized structure and configuration.

Features

  • 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

Installation

You can install gog directly using Go:

go install github.com/mohamedalosaili/gog/cmd/gog@latest

Path Setup (for Linux/macOS)

After 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 ~/.zshrc

Add this line to the file:

export PATH=$PATH:$(go env GOPATH)/bin

Usage

gog new <project-name>

Troubleshooting

  • If you encounter any issues, while updating the version try this:
go clean -modcache
rm -rf $GOPATH/pkg/mod/cache/download/github.com/mohamedalosaili/gog
go install github.com/mohamedalosaili/gog/cmd/gog@v<version>

About

A command-line tool to quickly scaffold new Go projects with a standardized structure and configuration.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •