使用Go語言實現http服務端指定路徑的文件.

package main import ( "io" "net/http" ) func main() { http.HandleFunc("/", router) http.ListenAndServe(":1789", nil) } func router(w http.ResponseWriter, r *http.Request) { v, ok := r.URL.Quer
相關文章
相關標籤/搜索