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

Function parseValues

pkg/server/controllers/helpers.go:61–72  ·  view source on GitHub ↗
(values url.Values, dst interface{})

Source from the content-addressed store, hash-verified

59}
60
61func parseValues(values url.Values, dst interface{}) error {
62 dec := schema.NewDecoder()
63
64 // Ignore CSRF token field
65 dec.IgnoreUnknownKeys(true)
66
67 if err := dec.Decode(dst, values); err != nil {
68 return err
69 }
70
71 return nil
72}
73
74func parseJSON(r *http.Request, dst interface{}) error {
75 dec := json.NewDecoder(r.Body)

Callers 1

parseFormFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected