github.com/searKing/golang/go@v1.2.117/error/README.md (about)

     1  [![Build Status](https://travis-ci.org/searKing/travis-ci.svg?branch=github.com/golang/go/error)](https://travis-ci.org/searKing/travis-ci)
     2  [![GoDoc](https://godoc.org/github.com/searKing/golang/go/error?status.svg)](https://godoc.org/github.com/searKing/golang/go/error)
     3  [![Report card](https://goreportcard.com/badge/github.com/searKing/golang/go/error)](https://goreportcard.com/report/github.com/searKing/golang/go/error) 
     4  [![Sourcegraph](https://sourcegraph.com/github.com/searKing/golang/-/badge.svg)](https://sourcegraph.com/github.com/searKing/travis-ci@github.com/golang/go/error?badge)
     5  # cause 
     6  Package errors provides simple error handling primitives.
     7  
     8  `go get github.com/searKing/golang/go/error`
     9  
    10  The traditional error handling idiom in Go is roughly akin to
    11  ```go
    12  if err != nil {
    13          return err
    14  }
    15  ```
    16  which applied recursively up the call stack results in error reports without context or debugging information. 
    17  The errors package allows programmers to use errors as Exception in Java in their code.
    18  
    19  
    20  [Read the package documentation for more information](https://godoc.org/github.com/searKing/golang/go/error).
    21