Documentation ¶ Index ¶ func To[T any](val T) *T Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func To ¶ func To[T any](val T) *T To is a quick&easy helper function to generate a pointer to a static value. This is required in some cases where optional values are modelled using pointers to primitive types (for example, when an "optional boolean" is modelled as `*bool` Types ¶ This section is empty. Source Files ¶ View all Source files to.go Click to show internal directories. Click to hide internal directories.