MCPcopy Index your code
hub / github.com/dnote/dnote / parsePageQuery

Function parsePageQuery

pkg/server/controllers/notes.go:59–67  ·  view source on GitHub ↗
(q url.Values)

Source from the content-addressed store, hash-verified

57}
58
59func 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
69func parseGetNotesQuery(q url.Values) (app.GetNotesParams, error) {
70 yearStr := q.Get("year")

Callers 1

parseGetNotesQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected