(r *http.Request)
| 28 | } |
| 29 | |
| 30 | func getUserID(r *http.Request) (uint, error) { |
| 31 | vars := mux.Vars(r) |
| 32 | i, err := strconv.ParseUint(vars["id"], 10, 0) |
| 33 | if err != nil { |
| 34 | return 0, err |
| 35 | } |
| 36 | return uint(i), err |
| 37 | } |
| 38 | |
| 39 | func getUser(_ http.ResponseWriter, r *http.Request) (*modifyUserRequest, error) { |
| 40 | if r.Body == nil { |