Web.GoGo語言的Web開發(fā)框架
Web.Go 跟 web.py 類似,但使用的是 Go 編程語言實現(xiàn)的 Web 應(yīng)用開發(fā)框架。
安裝方法:
git clone git://github.com/hoisie/web.go.git
cd web.go
make && make install
示例代碼:
package main
import (
"web"
)
func hello(val string) string { return "hello " + val }
func main() {
web.Get("/(.*)", hello)
web.Run("0.0.0.0:9999")
}
編譯方法:8g hello.go && 8l -o hello hello.8 && ./hello
測試方法:http://localhost:9999/world
評論
圖片
表情
