在Google的应用引擎上是否可以使用http://martini.codegangsta.io?有没有示例?在开始这个过程之前,我需要注意什么问题吗?谢谢。
在Google的应用引擎上是否可以使用http://martini.codegangsta.io?有没有示例?在开始这个过程之前,我需要注意什么问题吗?谢谢。
unsafe
和syscall
包 (应该没问题)。
Martini的README中包含一个在GAE中使用Martini的示例,正如@elithar指出的那样: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)
}