errors

package module
v0.0.0-...-7f31f4b Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2018 License: Apache-2.0 Imports: 1 Imported by: 16

README

errors

增强型errors包(for golang)

完全兼容官方的errors包,且附带堆栈信息,方便debug

API完全兼容

安装

go get github.com/wendal/errors

使用

仅需将

import errors

改为

import github.com/wendal/errors

Documentation

Overview

Package errors implements functions to manipulate errors.

Index

Constants

This section is empty.

Variables

View Source
var AddStack = true

Functions

func New

func New(text string) error

New returns an error that formats as the given text.

Types

This section is empty.

Jump to

Keyboard shortcuts

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