fck

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 1 Imported by: 6

README

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:

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, a ...interface{}) error

Types

type Error

type Error string

func (Error) Error

func (receiver Error) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL