update main

master
ZGGSONG 3 years ago
parent 90e28fe0f6
commit 5cae3d5383

@ -61,6 +61,8 @@ func login(w http.ResponseWriter, r *http.Request) {
func main() { func main() {
http.HandleFunc("/", sayHelloName) http.HandleFunc("/", sayHelloName)
http.HandleFunc("/login", login) http.HandleFunc("/login", login)
fmt.Println("http://127.0.0.1:9090")
fmt.Println("http://127.0.0.1:9090/login")
err := http.ListenAndServe(":9090", nil) err := http.ListenAndServe(":9090", nil)
if err != nil { if err != nil {
log.Fatal("ListenAddServer: ", err) log.Fatal("ListenAddServer: ", err)

Loading…
Cancel
Save