Package martini is a powerful package for quickly writing modular web applications/services in Golang. Env is the environment that Martini is executing in. The MARTINI_ENV is read on initialization to set this variable. 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. Martini will panic if an argument could not be fullfilled via dependency injection.

Features

  • Extremely simple to use
  • Non-intrusive design
  • Plays nice with other Golang packages
  • Awesome path matching and routing
  • Modular design, easy to add functionality, easy to rip stuff out
  • Lots of good handlers/middlewares to use
  • Great 'out of the box' feature set

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Martini

Martini Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Martini!

Additional Project Details

Operating Systems

Windows

Programming Language

Go

Related Categories

Go Frameworks, Go Web Development Frameworks

Registered

2021-05-20