Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultHeaders ¶
func E ¶
func E(code int) func(*string) APIResponse
func S ¶
func S(code int) func(any) APIResponse
Types ¶
type APIResponse ¶
type APIResponse struct {
Status Status `json:"status"`
Data *any `json:"data,omitempty"`
Error *Error `json:"error,omitempty"`
}
func ENil ¶
func ENil(code int) APIResponse
Click to show internal directories.
Click to hide internal directories.