errcode

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

* [file desc] * author: CC * email : [email protected] * date : 2017.06.17

Index

Constants

View Source
const (
	Success int32 = 0
	Unknown int32 = 1000 + iota
)

Variables

This section is empty.

Functions

func Init

func Init(fn string)

init module from json file.

Types

type ErrCode

type ErrCode struct {
	Code int32
	Err  error
}

TODO.

func NewErrorCode

func NewErrorCode(code int32, args ...interface{}) *ErrCode

create error code.

Jump to

Keyboard shortcuts

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