Val is a helper function to create a value from a pointer
(v *T)
| 12 | |
| 13 | // Val is a helper function to create a value from a pointer |
| 14 | func Val[T any](v *T) T { |
| 15 | if v != nil { |
| 16 | return *v |
| 17 | } |
| 18 | var zero T |
| 19 | return zero |
| 20 | } |
nothing calls this directly
no outgoing calls
no test coverage detected