api

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResp

type ErrorResp struct {
	Status int    `json:"status"`  // HTTP status code with a json tag
	Msg    string `json:"message"` // Human-readable message with a json tag
}

Simple error response struct with json notation.

func NewErrorResp

func NewErrorResp(status int, msg string) *ErrorResp

func (*ErrorResp) Error

func (e *ErrorResp) Error() string

Implementation func of error interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL