Generate Golang Project CLI
MIT License
Fullform: Gen
erate G
olang Project
geng
is command-line interface tool that helps you to initialize, develop, and maintain your Go gin applicationsgo install github.com/mukezhz/geng@latest
Alternative Install
Add binary dir to your PATH variable [If geng command didn't work after installation]
// For zsh: [Open.zshrc] & For bash: [Open .bashrc]
// Add the following:
export GO_HOME="$HOME/go"
export PATH="$PATH:$GO_HOME/bin"
// For fish: [Open config.fish]
// Add the following:
fish_add_path -aP $HOME/go/bin
geng help
geng new <project-name> -m <project-module-name> [-d <directory>]
geng new
cd <directory>
cp .env.example .env
go mod tidy
go run main.go
// Project needs to initialize git repository to work module generation
geng gen module <module-name>
NOTE: default supported version is of golang 1.20
module.go
when new module is addedThank You!!!