reflect

package
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: 4 Imported by: 7

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 any) bool

func IsEmptyValue

func IsEmptyValue(v any) bool

func New

func New(tpe reflect.Type) reflect.Value

New return TypeValue not like reflect.New, which return PtrTo(reflect.Type),

func ParseStructTags

func ParseStructTags(tag string) map[string]StructTag

Types

type StructTag

type StructTag string

func (StructTag) HasFlag

func (t StructTag) HasFlag(flag string) bool

func (StructTag) Name

func (t StructTag) Name() string

type ZeroChecker

type ZeroChecker interface {
	IsZero() bool
}

Jump to

Keyboard shortcuts

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