FAQs
Last updated
Was this helpful?
Last updated
Was this helpful?
Every Macaron implements , so it can easily be used to serve subtrees on existing Go servers. For example this is a working Macaron app for Google App Engine:
Or following ways:
m.Run("0.0.0.0")
, listen on 0.0.0.0:4000
m.Run(8080)
, listen on 0.0.0.0:8080
m.Run("0.0.0.0", 8080)
, listen on 0.0.0.0:8080
Integrate frequently used middlewares and helper methods with less reflection.
Replace default router with faster multi-tree router.
Make a deep source study against Martini.
Shouldn't it be some sort of dessert?
The transliteration of Macaron in Chinese is Maca Long
, Long
means dragon, so actually the Logo is a dragon whose name is Maca
. Hah!
Macaron's Run
function looks for the PORT
and HOST
environment variables and uses those. Otherwise Macaron will default to . To have more flexibility over port and host, use the function instead.
There is a field called Data
with type map[string]interface{}
in where you can store and retrieve any type of data. It comes with so every request is independent.
See example .
Make it much easier to power project.
is the prefect fit for live reloading Macaron and other apps.