master
ZGGSONG 3 years ago
parent aae77adedf
commit 90e28fe0f6

@ -48,13 +48,13 @@ func login(w http.ResponseWriter, r *http.Request) {
//为空的处理
fmt.Println("username is empty!!!")
}
getint, err := strconv.Atoi()(r.Form.Get("age"))
//getint, err := strconv.Atoi()(r.Form.Get("age"))
if err != nil {
fmt.Println("this is an error")
}
if getint > 100 {
fmt.Println("too old")
}
//if getint > 100 {
// fmt.Println("too old")
//}
}
}

Loading…
Cancel
Save