반응형
Martini: Web development with Go
Martini makes web development with Go much easier. It has a flexible routing layer, comes with a set of stock middleware, and can leverage open source web packages built in Go.
Martini is a powerful package for quickly writing modular web applications/services in Golang.
package main
import "github.com/codegangsta/martini"
func main() {
m := martini.Classic()
m.Get("/", func() string {
return "Hello world!"
})
m.Run()
}
Install the package (go 1.1 and greater is required):
go get github.com/codegangsta/martini
Join the Mailing list
Watch the Demo Video
Features
- Extremely simple to use.
- Non-intrusive design.
- Play 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.
- Fully compatible with the http.HandlerFunc interface.
More Middleware
For more middleware and functionality, check out the martini-contrib repository.
Table of Contents
반응형
'프로그래밍 > Web' 카테고리의 다른 글
[HTML5] Enables <video> and <audio> tags in all major browsers. (0) | 2013.12.05 |
---|---|
NudgePad: Faster prototyping in your browser (0) | 2013.12.02 |
Web.go: Create web applications with Go (0) | 2013.11.18 |
InfluxDB: An open source database with no dependenceis (0) | 2013.11.13 |
[IE 10] How to enable IFRAME in Internet Explorer 10? IE 10 에서 iframe이 안보이면 (0) | 2013.11.11 |