package
Version:
v0.0.0-...-a6acc86
Opens a new window with list of versions in this module.
Published: Jan 15, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
HandleErr Handles errors and sends a JSON response
ReadJSON reads the JSON into dst interface obj of the req provided, handlesmost JSON errors
SendJSON sends the interface obj as JSON on the res provided
type Response struct {
Status int `json:"status"`
Msg string `json:"msg"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.