modulepackage
1.0.5
Repository: https://github.com/indalyadav56/go-generator.git
Documentation: pkg.go.dev
# README
Go Generator
A powerful code generator tool for Go projects that helps streamline development by automating common code patterns and boilerplate.
Features
- Automated code generation for common patterns
- Built-in templates for various use cases
- Customizable code templates
- Easy to use CLI interface
Installation
Clone the repository with submodules:
git clone --recurse-submodules https://github.com/indalyadav56/go-generator.git
Prerequisites
- Go 1.16 or higher
- Git
Usage
- Navigate to the project directory:
cd go-generator
- Build the project:
make build
- Run the generator:
./bin/go-generator [command] [flags]
Example:
./bin/go-generator init backend --app=auth --app=user --app=todo
or
go run main.go init backend --app=auth --app=user --app=todo
Available Commands
init
: Initialize a new projectgenerate
: Generate code from templates- More commands coming soon...
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For support, please open an issue in the GitHub repository.