多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] > [官网](https://goji.io/) ## 安装 ``` go get goji.io ``` ## demo ``` package main import ( "fmt" "net/http" "goji.io" "goji.io/pat" ) func hello(w http.ResponseWriter, r *http.Request) { name := pat.Param(r, "name") fmt.Fprintf(w, "Hello, %s!", name) } func main() { mux := goji.NewMux() mux.HandleFunc(pat.Get("/hello/:name"), hello) http.ListenAndServe("localhost:8000", mux) } ```