Discover Packages
github.com/ozontech/testo
internal
reflectutil
package
Version:
v1.5.1
Opens a new window with list of versions in this module.
Published: Jun 17, 2026
License: Apache-2.0
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
Documentation
¶
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.
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 is also applies for nested structs.
NameOf returns name of the underlying type T.
New a new zero value of T.
As a special case for pointers it will
return pointer to the zero value of T (not nil).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.