luosangnanka/viewerr


golang error helper to view the error line and file.

License: Apache-2.0

Language: Go


viewerr

golang error helper to view the error line and file.

Installation

go get github.com/luosangnanka/viewerr

Features

When you debug just see the error info is not enough, but with this, you can see more info just like,

[migo.go:74] ERROR error... 

or that in http applications,

[migo.go:74] [127.0.0.1 /index/index] ERROR error...

Demos

You can just use that when:

if err != nil {
	fmt.Println(viewerr.WrapError(err))
	os.Exit(2)
}

When the package 'fmt' and 'os' is import indeed.

Project Statistics

Sourcerank 3
Repository Size 141 KB
Stars 1
Forks 0
Watchers 1
Open issues 0
Dependencies 0
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

狗蛋

Packages Referencing this Repo

github.com/luosangnanka/viewerr
golang error helper to view the error line and file.
Latest release - Published - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2018-04-08 03:36:56 UTC

Login to resync this repository