Documentation ¶ Index ¶ func To[T any](v T) *T Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func To ¶ func To[T any](v T) *T To generates a pointer to a variable containing the given value. In Go, addressible constant is an oxymoron, so the expression "&true", for example, is invalid. This function makes that less annoying. Types ¶ This section is empty. Source Files ¶ View all Source files ptr.go Click to show internal directories. Click to hide internal directories.