有没有可能在谷歌的应用程序引擎上使用http://martini.codegangsta.io?有谁有一个例子吗?在走这条路之前,有什么我应该注意的问题吗?提前谢谢。
发布于 2013-11-28 23:28:27
只要马提尼不使用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://stackoverflow.com/questions/20268404
复制相似问题