Path to this page:
./
devel/go-errors,
Simple error handling primitives
Branch: pkgsrc-2021Q1,
Version: 0.8.0nb23,
Package name: go-errors-0.8.0nb23,
Maintainer: pkgsrc-usersPackage errors provides simple error handling primitives.
The traditional error handling idiom in Go is roughly akin to
if err != nil {
return err
}
which applied recursively up the call stack results in error reports without
context or debugging information. The errors package allows programmers to add
context to the failure path in their code in a way that does not destroy the
original value of the error.
Master sites:
SHA1: 6256e89cb3c94189180096eb804d9c8c90088fb5
RMD160: 473ecf6cada7287f2e27c90509d351f98895ecf3
Filesize: 11.078 KB
Version history: (Expand)
- (2021-03-30) Package added to pkgsrc.se, version go-errors-0.8.0nb23 (created)