【发布时间】:2013-11-28 14:16:51
【问题描述】:
是否可以在 Google 的应用引擎上使用http://martini.codegangsta.io?有人有例子吗?在走这条路之前,我应该注意什么问题?提前致谢。
【问题讨论】:
标签: google-app-engine go
是否可以在 Google 的应用引擎上使用http://martini.codegangsta.io?有人有例子吗?在走这条路之前,我应该注意什么问题?提前致谢。
【问题讨论】:
标签: google-app-engine go
只要马提尼不使用 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。
【讨论】: