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