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

kubasobon/errors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)