Is it possible to use martini framework in application

Can I use http://martini.codegangsta.io in a Google app? Does anyone have an example? Any information I should know about before taking this path? Thanks in advance.

+4
source share
1 answer

Until martini uses cgo or unsafeand syscallpackage this should be fine . README of martini contains an example of using martinis with GAE, as @elithar pointed out :

package hello

import (
  "net/http"
  "github.com/go-martini/martini"
)

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

.

+6

All Articles