Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiResponse ¶
type ApiResponse struct { Success bool `json:"success"` Msg string `json:"msg,omitempty"` Data any `json:"data"` Code int `json:"code"` Title string `json:"title,omitempty"` }
func NewMsgResponse ¶
func NewMsgResponse(msg string) *ApiResponse
type TitledError ¶
type TitledError struct {
// contains filtered or unexported fields
}
func NewTitledError ¶
func NewTitledError(title, content string) *TitledError
func (TitledError) Error ¶
func (t TitledError) Error() string
func (TitledError) Title ¶
func (t TitledError) Title() string
Click to show internal directories.
Click to hide internal directories.