reflectutil

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(v1, v2 any) bool

func IsFunc

func IsFunc(v any) bool

func IsNil

func IsNil(v any) bool

IsNil prevent panic from go/src/reflect/value.go:1551

func ToPtr

func ToPtr(v any) (any, bool)

ToPtr if v is ptr return itself, else return ptr of v second return value is true if v is ptr

Types

This section is empty.

Jump to

Keyboard shortcuts

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