What is the Martini Web Framework?

For those of you who aren’t familiar with the Go Language, https://github.com/go-martini/martini is a framework that was created to be extremely easy to use, so you can focus more on the application and less on the development. It has gotten a lot of criticism for doing too much “magic” which goes against the ways of Go Language because the developer and contributors have gone to great lengths to do a lot of the boilerplate code for you so you can get an application running in a matter of a few lines of code:

package main

import "github.com/go-martini/martini"

func main() {
  m := martini.Classic()
  m.Get("/", func() string {
    return "Hello world!"
  })
  m.Run()
}

Last Updated: 2015-01-06 00:00:00 +0000 UTC



What are your thoughts on this?

Categories

RSS feed

Follow Doug On Social