Documentation ¶
Overview ¶
Package jsonutil provides common utilities for properly handling JSON payloads in HTTP body.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalResponse ¶ added in v0.19.0
func MarshalResponse(w http.ResponseWriter, status int, response interface{})
MarshalResponse is a helper function to write an object to the http.ResponseWriter with fallback error template.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.