MCPcopy Index your code
hub / github.com/cockroachdb/errors / Formattable

Function Formattable

errbase_api.go:228–228  ·  view source on GitHub ↗

Formattable wraps an error into a fmt.Formatter which will provide "smart" formatting even if the outer layer of the error does not implement the Formatter interface.

(err error)

Source from the content-addressed store, hash-verified

226// will provide "smart" formatting even if the outer layer
227// of the error does not implement the Formatter interface.
228func Formattable(err error) fmt.Formatter { return errbase.Formattable(err) }
229
230// RegisterTypeMigration tells the library that the type of the error
231// given as 3rd argument was previously known with type

Callers

nothing calls this directly

Calls 1

FormattableFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…