util

package module
v0.0.0-...-dd6747b Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 4 Imported by: 0

README

util

some useful util function for go program

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EF

func EF(err error)

通用错误退出函数

func EH

func EH(err error) bool

通用错误处理函数,用于需要记录位置的错误处理 Usage:

if !EH(err) {
	// return error or transfer error
}

func EHCaller

func EHCaller(err error, callerDepth int) bool

注明调用深度的错误处理函数 Usage:

if !EHCaller(err,2) {
	// return error or transfer error
}

func Emsg

func Emsg(err error, msg string) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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