标签:UNC main nan print div and int fun 搭建web服务器
package main import ( "net/http" "fmt" ) func sayHelloWorld(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello Wrold!") //这个写入到w的是输出到客户端的 } func main() { http.HandleFunc("/",sayHelloWorld) http.ListenAndServe(":8899",nil) }
标签:UNC main nan print div and int fun 搭建web服务器
原文地址:https://www.cnblogs.com/xbblogs/p/9374005.html