Documentation
¶
Index ¶
- func GetCSV(qs url.Values, key string, def []string) []string
- func GetDate(qs url.Values, key string, def time.Time) (time.Time, error)
- func GetInt(qs url.Values, key string, def int) (int, error)
- func GetString(qs url.Values, key, def string) string
- func ReadJSON(w http.ResponseWriter, r *http.Request, v any) error
- func URLIntParam(r *http.Request, key string) (int64, error)
- func URLParam(r *http.Request, key string) string
- func WriteJSON(w http.ResponseWriter, status int, v any) error
- type M
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadJSON ¶
Reads a JSON-encoded value from the request body and stores it in the value pointed to by v.
func URLIntParam ¶
Tries to get a int value from url params.
Types ¶
Click to show internal directories.
Click to hide internal directories.