Skip to content

sh-lucas/mug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

☕ Take a coffee

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. Use cup_router.Route() to bind to the port.
  • cup: the main generated package; this includes all the current environment variables in your local .env file; 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.

Installing

go install github.com/sh-lucas/mug/cmd/mug@latest

Why "mug"?

The 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.

TODOS:

  • 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 build for cool dockerization.

About

Pouring requests into handlers and making good coffee <3

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •