Documentation
¶
Overview ¶
Package pointer converts between values and pointers in expression position.
API models are full of optional fields typed as *T. Reading one means "the value, or the zero value when it is absent", and building one means "a pointer to this literal". Both are trivial as statements and awkward as expressions, which is where these helpers earn their keep: inside a struct literal, a function argument, or a return.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.