Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Send ¶
func Send(w http.ResponseWriter, data any, err error)
Send writes given `data` or `err` to `w` as `json`
func SendAsAttachment ¶
func SendAsAttachment(w http.ResponseWriter, r *http.Request, filename string, data io.ReadSeeker, err error)
SendAsAttachment attaches given `data` as downloadable attachment with given `filename` it supports ranged requests
Types ¶
Click to show internal directories.
Click to hide internal directories.