package main

import (
    "net/http"
)

func SayHello(w http.ResponseWriter, req *http.Request) {
    w.Write([]byte("Hello"))
}
func main() {
    http.HandleFunc("/hello", SayHello)
    http.ListenAndServe(":80", nil)
}
文档更新时间: 2019-06-07 10:33   作者:月影鹏鹏