MCPcopy Index your code
hub / github.com/AlekSi/pointer / ToError

Function ToError

pointer.go:37–39  ·  view source on GitHub ↗

ToError returns a pointer to the passed error value.

(e error)

Source from the content-addressed store, hash-verified

35
36// ToError returns a pointer to the passed error value.
37func ToError(e error) *error {
38 return &e
39}
40
41// ToFloat32 returns a pointer to the passed float32 value.
42func ToFloat32(f float32) *float32 {

Callers 1

TestErrorFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestErrorFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…