Is it possible to use http://martini.codegangsta.io on Google's app engine? Does anyone have an example? Any gotcha's that I should be aware of before going down this path? Thanks in advance.
As long as martini does not use cgo or the unsafe
and syscall
package it should be fine. The README of martini contains an example of using martini 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)
}
Another example of using third-party packages with app engine is this randomly chosen app engine example project.