scanNullInt returns nil for NULL, pointer to int otherwise.
(ni sql.NullInt64)
| 110 | |
| 111 | // scanNullInt returns nil for NULL, pointer to int otherwise. |
| 112 | func scanNullInt(ni sql.NullInt64) *int { |
| 113 | if ni.Valid { |
| 114 | v := int(ni.Int64) |
| 115 | return &v |
| 116 | } |
| 117 | return nil |
| 118 | } |
no outgoing calls
no test coverage detected