Package erorr implements tools to create and manipulate errors, for the Go programming language.
Go to file
Charles Iliya Krempeaux 70207f8e01 initial commits 2021-11-19 15:41:30 -08:00
LICENSE initial commits 2021-11-19 15:41:30 -08:00
README.md initial commits 2021-11-19 15:41:30 -08:00
error.go initial commits 2021-11-19 15:41:30 -08:00
errorf.go initial commits 2021-11-19 15:41:30 -08:00
go.mod initial commits 2021-11-19 15:41:30 -08:00

README.md

go-fck

Package fck implements tools to create and manipulate errors.

Documention

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

GoDoc

Creating Errors

There are two ways to create errors —

With fck.Error:

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

And with fck.Errorf:

	const err error = fck.Errorf("bad value for id %q", id)

One thing to notice is that fck.Error errors can be a Go const.