golang cgi运行
1.test.go文件,使用cgi包,.go不是可执行的文件,使用 go run 来调用 package main import ( "log" "net/http" "net/http/cgi" ) func main() { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { handler := new(cgi.Handler) handler.Path = "D:/Go/bin/go" script :=...阅读全文