Mahou is a Go CLI project scaffolding tool designed to help developers quickly create and bootstrap Go command-line application projects. It provides integrated common features like project templates, configuration management, logging, and more, allowing you to focus on business logic development without having to build the project structure from scratch. Mahou means magic in Japanese. I think it's a interesting project name.
- 🚀 Quick Go CLI project template generation
- ⚙️ Support for multiple configuration file formats (YAML, JSON, TOML)
- 📝 Integrated logging management
- 🔧 Built-in Makefile build scripts
- 🐋 Docker support
- 📚 Rich usage examples
go install github.com/marsgopher/mahou/cmd/mahou@latest
Create a new project named hello and run it:
mahou new hello
cd hello
make build
./bin/hello greet
- Basic demo (reading various config file formats, setting variables from flags, viewing command-line help, setting log level)
- Binding flags to config file, binding subcommand flags to config file
- Parsing config file to embedded struct objects
- Loading config files from specified directory, loading multiple config files