Package macaron is a high productive and modular web framework in Go
Package macaron is a highly productive and modular web framework in Go. It takes the basic ideology of Martini and extends it in advance. Powerful routing with suburl. Flexible routes combinations. Unlimited nested group routers. Directly integrate with existing services. Dynamically change template files at runtime. Allow to use of the in-memory templates and static files. Easy to plugin/unplugin features with a modular design.
...BeforeFunc is a function that is called before the ResponseWriter has been written to. ClassicMartini represents a Martini with some reasonable defaults. Embeds the router functions for convenience. Classic creates a classic Martini with some basic default middleware - martini.Logger, martini.Recovery and martini.Static. Classic also maps martini.Routes as a service. Context represents a request context. Services can be mapped on the request level from this interface. Handler can be any callable function. Martini attempts to inject services into the handler's argument list. ...