|
|
|
@ -1,7 +1,9 @@ |
|
|
|
Goji |
|
|
|
==== |
|
|
|
|
|
|
|
Goji is a minimalistic web framework inspired by Sinatra. |
|
|
|
Goji is a minimalistic web framework inspired by Sinatra. [Godoc][doc]. |
|
|
|
|
|
|
|
[doc]: http://godoc.org/github.com/zenazn/goji |
|
|
|
|
|
|
|
Example |
|
|
|
------- |
|
|
|
@ -26,3 +28,21 @@ func main() { |
|
|
|
goji.Serve() |
|
|
|
} |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
Features |
|
|
|
-------- |
|
|
|
|
|
|
|
* Compatible with `net/http` |
|
|
|
* URL patterns (both Sinatra style `/foo/:bar` patterns and regular expressions) |
|
|
|
* Reconfigurable middleware stack |
|
|
|
* Context/environment objects threaded through middleware and handlers |
|
|
|
* Automatic support for [Einhorn][einhorn], systemd, and [more][bind] |
|
|
|
* [Graceful shutdown][graceful], and zero-downtime graceful reload when combined |
|
|
|
with Einhorn. |
|
|
|
* Ruby on Rails / jQuery style [parameter parsing][param] |
|
|
|
|
|
|
|
[einhorn]: https://github.com/stripe/einhorn |
|
|
|
[bind]: http://godoc.org/github.com/zenazn/goji/bind |
|
|
|
[graceful]: http://godoc.org/github.com/zenazn/goji/graceful |
|
|
|
[param]: http://godoc.org/github.com/zenazn/goji/param |