(q url.Values)
| 57 | } |
| 58 | |
| 59 | func parsePageQuery(q url.Values) (int, error) { |
| 60 | pageStr := q.Get("page") |
| 61 | if len(pageStr) == 0 { |
| 62 | return 1, nil |
| 63 | } |
| 64 | |
| 65 | p, err := strconv.Atoi(pageStr) |
| 66 | return p, err |
| 67 | } |
| 68 | |
| 69 | func parseGetNotesQuery(q url.Values) (app.GetNotesParams, error) { |
| 70 | yearStr := q.Get("year") |
no outgoing calls
no test coverage detected