GetError returns the value of the error pointer passed in or nil if the pointer is nil.
(e *error)
| 46 | |
| 47 | // GetError returns the value of the error pointer passed in or nil if the pointer is nil. |
| 48 | func 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. |
| 56 | func GetFloat32(f *float32) float32 { |