ecode

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const EcodeNum int32 = 9999

EcodeNum 低于10000均为系统错误码,业务错误码请使用10000以上

Variables

View Source
var (

	// OK ...
	OK = add(int(codes.OK), "OK")
)

Functions

func Add

func Add(code int, message string) *spbStatus

Add ...

func ExtractCodes

func ExtractCodes(e error) *spbStatus

ExtractCodes cause from error to ecode.

Types

type Status

type Status interface {
}

Status ...

Jump to

Keyboard shortcuts

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