Help us shape the future of Go! Take the 2026 Go Developer Survey

errs

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DBError = NewError(999, "db error")
View Source
var ErrParam = NewError(400, "param error")
View Source
var ErrUnauthorized = NewError(401, "unauthorized")
View Source
var NoEventHandler = NewError(500, "no handler")

Functions

This section is empty.

Types

type Errors

type Errors struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

func NewError

func NewError(code int, msg string) *Errors

func (*Errors) Error

func (e *Errors) Error() string

Jump to

Keyboard shortcuts

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