Ptr is a helper routine that allocates a new T value to store v and returns a pointer to it.
(v T)
| 2092 | // Ptr is a helper routine that allocates a new T value |
| 2093 | // to store v and returns a pointer to it. |
| 2094 | func Ptr[T any](v T) *T { |
| 2095 | return &v |
| 2096 | } |
| 2097 | |
| 2098 | // Bool is a helper routine that allocates a new bool value |
| 2099 | // to store v and returns a pointer to it. |
no outgoing calls