Documentation ¶
Index ¶
Constants ¶
View Source
const (
JSONContentType = "application/json"
)
Variables ¶
This section is empty.
Functions ¶
func DeleteCookies ¶
func DeleteCookies(w http.ResponseWriter, cookieNames ...string)
DeleteCookies effectively deletes all named cookies by wiping all data and setting to expire immediately.
func WriteJSONResponse ¶
func WriteJSONResponse(w http.ResponseWriter, code int, resp interface{}) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.