Package erorr implements tools to create and manipulate errors, for the Go programming language.
Go to file
Charles Iliya Krempeaux 0485e21eaa update to README.md 2024-07-04 07:53:50 -07:00
LICENSE initial commits 2021-11-19 15:41:30 -08:00
README.md update to README.md 2024-07-04 07:53:50 -07:00
error.go github.com/reiver/go-fck -> sourcecode.social/reiver/go-erorr 2023-09-23 04:46:12 +09:00
errorf.go made it so can wrap errors 2023-09-23 05:24:59 +09:00
go.mod sourcecode.social -> github.com 2024-07-04 07:43:40 -07:00
is.go Is() 2024-07-04 07:50:53 -07:00

README.md

go-erorr

Package erorr implements tools to create and manipulate errors, for the Go programming language.

(This package used to be called "fck".)

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-erorr

GoDoc

Creating Errors

There are two ways to create errors —

With erorr.Error:

	const err error = erorr.Error("internal-error")

NOTICE THAT THAT ERROR IS A const RATHER THAN A var.

Errors creating using erorr.Error can be a Go const.

And with erorr.Errorf:

	var err error = erorr.Errorf("bad value for id %q", id)