errors

package
v2.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MulanPSL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(key string) error

Types

type Errors

type Errors struct {
	Code    int    `json:"code" example:"4000000"`
	Message string `json:"message"`
}

func (*Errors) Error

func (e *Errors) Error() string

func (*Errors) GetCode

func (e *Errors) GetCode() int

func (*Errors) GetMessage

func (e *Errors) GetMessage() string

func (*Errors) SetCode

func (e *Errors) SetCode(code int)

func (*Errors) SetMessage

func (e *Errors) SetMessage(message string)

Jump to

Keyboard shortcuts

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