errorx

package
v0.0.0-...-215b726 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SuccessCode      = 0
	SuccessMsg       = "success"
	UnknownErrorCode = -1
	UnknownErrorMsg  = "unknown error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Code int32  `json:"code"`
	Msg  string `json:"msg"`
}

func New

func New(code int32, msg string) *Error

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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