package
Version:
v1.11.0
Opens a new window with list of versions in this module.
Published: Oct 14, 2025
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
IsStructPtr checks if the given interface is a pointer to a struct.
Ptr returns a pointer to its argument.
For example, Ptr[int](100) returns *int pointing to 100.
func Value[T any](p *T) T
Value returns the value that the pointer p points to.
If p is nil, it returns the zero value of the type T.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.