diff --git a/MyForm/main.go b/MyForm/main.go index ae5920e..b5ebedd 100644 --- a/MyForm/main.go +++ b/MyForm/main.go @@ -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") + //} } }