pointer returns the address of v and makes it easy to take the address of a predeclared identifier. Compare: t := true pt := &t vs pt := pointer(true)
(v T)
| 76 | // |
| 77 | // pt := pointer(true) |
| 78 | func pointer[T any](v T) *T { |
| 79 | return &v |
| 80 | } |
| 81 | |
| 82 | func invokeProxyCommand(args []string) (*Command, error) { |
| 83 | c := NewCommand() |
no outgoing calls
no test coverage detected