IntValue returns the value of the int pointer passed in or 0 if the pointer is nil.
(v *int)
| 38 | // IntValue returns the value of the int pointer passed in or |
| 39 | // 0 if the pointer is nil. |
| 40 | func IntValue(v *int) int { |
| 41 | if v != nil { |
| 42 | return *v |
| 43 | } |
| 44 | return 0 |
| 45 | } |
| 46 | |
| 47 | // Int64 returns a pointer to the int64 value passed in. |
| 48 | func Int64(v int64) *int64 { |
nothing calls this directly
no outgoing calls
no test coverage detected