Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Latest commit

 

History

History
23 lines (17 loc) · 567 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 567 Bytes

errors

Go Reference

A small package to make working with errors in Golang nicer. For use in personal projects.

err := errors.New("something went wrong: %v", value)
err := errors.NewOfKind(errors.ConfigError, "expected field was empty")
const invalidValueError errors.ErrorKind = "InvalidValueError"
err := errors.NewOfKind(invalidValueError, "expected X, got %#q", v)
err := errors.Mask(err)