4
在Google的应用引擎上可以使用http://martini.codegangsta.io吗?有没有人有一个例子?在走这条道路之前,我应该注意的任何疑难杂症?提前致谢。是否可以在应用引擎上使用martini框架
在Google的应用引擎上可以使用http://martini.codegangsta.io吗?有没有人有一个例子?在走这条道路之前,我应该注意的任何疑难杂症?提前致谢。是否可以在应用引擎上使用martini框架
只要马提尼不使用cgo或unsafe
和syscall
包it should be fine。 该README of martini包含使用与马提尼GAE作为@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)
}
使用第三方软件包与应用发动机的另一个例子是this randomly chosen app engine example project。
https://github.com/codegangsta/martini/pull/40 – elithrar