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

Function GetError

value.go:48–53  ·  view source on GitHub ↗

GetError returns the value of the error pointer passed in or nil if the pointer is nil.

(e *error)

Source from the content-addressed store, hash-verified

46
47// GetError returns the value of the error pointer passed in or nil if the pointer is nil.
48func GetError(e *error) error {
49 if e == nil {
50 return nil
51 }
52 return *e
53}
54
55// GetFloat32 returns the value of the float32 pointer passed in or 0 if the pointer is nil.
56func GetFloat32(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…