CrabScout. The best software around.
Search

Go Errors context

Add context and stack information to errors in Go.

pkg · Code and testing

GitHub projectOpen source Open on GitHub

How to try it

In a new Go module, add github.com/pkg/errors at v0.9.1. Wrap a fictional missing-item error and inspect the stored cause.

What we tested

v0.9.1. Wrap a fictional missing-item error and inspect the stored cause. Added the caller context and retained the original cause.

Reviews

Rate this repo

More to explore

  • GleamWrite typed code for the Erlang virtual machine or JavaScript.GitHub projectOpen source
  • PixiSet up reproducible software environments for projects.GitHub projectOpen source
  • LycheeCheck that document links point to reachable paths.GitHub projectOpen source

Share

What the labels mean

Save to your library