reflectx

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 6 Imported by: 1

README

Reflectx

GoDoc Widget codecov Go Report Card

reflect helpers

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deref

func Deref(tpe reflect.Type) reflect.Type

func FullTypeName

func FullTypeName(rtype reflect.Type) string

func Indirect

func Indirect(rv reflect.Value) reflect.Value

func IsBytes

func IsBytes(v interface{}) bool

func IsEmptyValue

func IsEmptyValue(v interface{}) bool

func MarshalText

func MarshalText(v interface{}) ([]byte, error)

func New

func New(tpe reflect.Type) reflect.Value

func UnmarshalText

func UnmarshalText(v interface{}, data []byte) error

Types

type RawValuer

type RawValuer interface {
	Set(v interface{}) error
}

type ZeroChecker

type ZeroChecker interface {
	IsZero() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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