boolPtr returns a pointer to a bool with the given value.
(b bool)
| 442 | |
| 443 | // boolPtr returns a pointer to a bool with the given value. |
| 444 | func boolPtr(b bool) *bool { return &b } |
| 445 | |
| 446 | // intPtr returns a pointer to an int with the given value. |
| 447 | func intPtr(i int) *int { return &i } |
no outgoing calls