赞
踩
package main import ( "fmt" "log" "net/http" ) func main() { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "您的服务器已经开启! 请访问www.x9day.com查看!") }) fmt.Printf("Starting server at port 8081 \n") if err := http.ListenAndServe(":8081", nil); err != nil { log.Fatal(err) } }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。