reflection

package
v0.0.0-...-8e8e47b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dereference

func Dereference(value reflect.Value) (reflect.Value, error)

Dereference returns the value after all pointers and interfaces. Is case of types that can be nil but aren't pointers, like maps or slices, it does nothing.

func IsNil

func IsNil(value reflect.Value) bool

IsNil returns true if the value is nil.

Types

type DereferenceNil

type DereferenceNil struct{}

DereferenceNil is returned Dereference is called with nil pointers.

func (*DereferenceNil) Error

func (d *DereferenceNil) Error() string

Error ensures DereferenceNil implements the error interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL