package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Nov 10, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
BadRequest sends a 400 Bad Request response
Error sends an error response
InternalError sends a 500 Internal Server Error response
NotFound sends a 404 Not Found response
Success sends a successful response
type Response struct {
Success bool `json:"success"`
Data interface{} `json:"data,omitempty"`
Error string `json:"error,omitempty"`
}
Response is the standard API response format
Source Files
¶
Click to show internal directories.
Click to hide internal directories.