Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Elem ¶
func Elem[T canElem[T]](v T) T
Elem unwraps the underlying elem of the pointer.
Nested pointers are also supported - e.g. given "****value" it will return "value".
Non-pointer values will be returned as is.
func Filled ¶
Filled returns a new value T with all the exported pointer fields recursively set to non-nil zero values. That is, if type is a struct and contains field *int it will be set to &0. That logic also applies for nested structs.
func MustTypeAssert ¶ added in v1.8.0
MustTypeAssert wraps reflect.TypeAssert.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.