GoGinit is a CLI tool for initializing Go backend projects with ease. Perfect for kickstarting your Go projects with structured templates and framework options!
- Seamless Initialization: Set up a new Go project in no time.
- Framework Options: Choose between Echo, Gin, Fiber, Fuego, or other supported frameworks.
- Customizable: Optionally include configuration files and setup scripts.
- SQLite Database Setup: Initialize a SQLite database with your project.
- Start Command: Easily run your Go project with a single command.
- Clean Command: Remove unused libraries in the mod file.
-
Tap the Homebrew repository:
brew tap pol-cova/goginit
-
Install GoGinit:
brew install goginit
-
Download the latest binary from the releases page.
-
Extract the binary and move it to a directory in your
PATH
:tar -xzf goginit_<version>_<os>_<arch>.tar.gz sudo mv goginit /usr/local/bin/
To initialize a new Go project, run:
goginit init
To run the main.go file located in cmd/projectName/main.go
, use:
cd <projectName>
goginit start <projectName>
Options:
<project-name>
: Name of the project (required).
To clean the mod file use:
cd <projectName>
goginit clean
echo
: For the Echo frameworkgin
: For the Gin frameworkfiber
: For the Fiber frameworkfuego
: For the Fuego frameworkmartini
: For the Martini frameworkchi
: For the Chi frameworkmux
: For the Mux frameworkGoFr
: For the GoFr frameworkFuego
: For the Fuego frameworkdefault
: For the nativenet/http
- Optimization: Upcoming updates will focus on optimizing performance and improving overall efficiency.
- Test: Implementing test options for your backend using the CLI tool.
- Benchmarking: Adding benchmarking options to the CLI tool.
We welcome contributions! To contribute:
- Fork the repository and clone your fork.
- Create a new branch for your changes.
- Make your changes and test thoroughly.
- Submit a pull request with a detailed description.
GoGinit is licensed under the MIT License.
For support or questions, reach out to us at polc394@gmail.com.
Happy Coding! ๐