Golang error handling extensions that support structured errors.
  • Go 97.3%
  • Makefile 2.7%
Find a file
Patrick Audley d339698d15
(init) Create go-ossf-slsa3-publish.yml
Signed-off-by: Patrick Audley <paudley@blackcat.ca>
2024-07-01 14:10:58 -07:00
.github (init) Create go-ossf-slsa3-publish.yml 2024-07-01 14:10:58 -07:00
.gitignore (git) land code 2024-05-16 22:32:50 -07:00
.golangci.yml (qa) move linte exclusions into linter config 2024-05-22 10:48:16 -07:00
classes.go (qa) updated README 2024-05-22 00:03:03 -07:00
doc.go (qa) updated README 2024-05-22 00:03:03 -07:00
e_test.go (qa) updated README 2024-05-22 00:03:03 -07:00
go.mod (qa) drop required go.mod version to v1.20 2024-05-22 10:50:19 -07:00
go.sum (qa) updated README 2024-05-22 00:03:03 -07:00
LICENSE Initial commit 2024-05-16 20:09:42 -07:00
Makefile (git) land code 2024-05-16 22:32:50 -07:00
output.go (qa) remove nolint directives 2024-05-22 10:48:52 -07:00
README.md (qa) godoc badge fiddling 2024-05-22 00:05:34 -07:00
SECURITY.md (sec) add a security readme 2024-05-16 22:38:11 -07:00
stack.go (qa) updated README 2024-05-22 00:03:03 -07:00
type.go (qa) remove most nolint directives, rename short variables for readability, add some docs. 2024-05-22 10:49:33 -07:00

e

GoDoc GitHub License GitHub go.mod Go version

Golang error handling extensions that support structured errors.

Package e implements an alternative go error class that adds the following:

  • much nicer console error output
  • automatic stack tracings in an efficient manor
  • variable annotation for errors
  • error lambdas for running code to capture errors only IFF there is an error

Documentation

Full go doc style documentation for the project can be viewed online without installing this package by using the excellent GoDoc site here: http://godoc.org/github.com/paudley/e

You can also view the documentation locally once the package is installed with the godoc tool by running godoc -http=":6060" and pointing your browser to http://localhost:6060/pkg/github.com/paudley/e

Installation

$ go get -u github.com/paudley/e

Quick Start

Add this import line to the file you're working in:

import "github.com/paudley/e"