Skip to content

Release 1.2.0

Choose a tag to compare

@deankarn deankarn released this 26 Mar 16:17
· 39 commits to master since this release
9c0defa

What's new?

Added error helpers which you can register using errors.RegisterHelper(...) that can help classify and gather Tag information automatically.

eg.

errors.RegisterHelper(neterrors.NETErrors)
	_, err := net.ResolveIPAddr("tcp", "foo")
	if err != nil {
		err = errors.Wrap(err, "failed to perform operation")
	}

	// all that extra context, types and tags captured for free
	// there are more helpers and you can even create your own.
        fmt.Println(err)