Mug is a code-rebuilding tool, environment variable wrapper and router-glue-code-generating cli-tool written in go.
This is meant to make the golang developer's life a bit easier with batteries-included experience.
It loads your environment and generates a folder cup in the current folder.
Today, mug is currently generating two packages inside of this folder:
- cup_router: a simple package that routes every
//mug:handler <path>to the default http's handler. Usecup_router.Route()to bind to the port. - cup: the main generated package; this includes all the current environment variables in your local
.envfile; they are securely loaded and injected by mug.
Also, typing mug in the terminal will work like air, the auto-rebuild tool for go.
The advantage is that the .env file is automatically loaded and injected in the process.
go install github.com/sh-lucas/mug/cmd/mug@latestThe name?
Because I like coffee.
Firstly, because I wanted. Secondly, I also want to have a personalized golang experience.
This project intends to be bigger one day, having more useful tools under a single command.
- Auto-generating .env.example file.
- Export default Debounce, Throttle, and stuff.
- Export a default Rabbit, Mongo and SQL wrappers.
- Using httpRouter, faster json, and dependency injection.
- Maybe running docker composes in the way.
- Test suites.
mug buildfor cool dockerization.