...
Package errors
Package errors implements functions to manipulate errors.
▾ Example
1989-03-15 22:30:00 +0000 UTC: the file system has gone away
In the call graph viewer below, each node
is a function belonging to this package
and its children are the functions it
calls—perhaps dynamically.
The root nodes are the entry points of the
package: functions that may be called from
outside the package.
There may be non-exported or anonymous
functions among them if they are called
dynamically from another package.
Click a node to visit that function's source code.
From there you can visit its callers by
clicking its declaring func
token.
Functions may be omitted if they were
determined to be unreachable in the
particular programs or tests that were
analyzed.
func New(text string) error
New returns an error that formats as the given text.
▾ Example
emit macho dwarf: elf header corrupted
▾ Example (Errorf)
The fmt package's Errorf function lets us use the package's formatting
features to create descriptive error messages.
user "bimmler" (id 17) not found