reflect

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 4 Imported by: 16

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 added in v0.0.6

func ParseStructTags(tag string) map[string]StructTag

Types

type StructTag added in v0.0.6

type StructTag string

func (StructTag) HasFlag added in v0.0.6

func (t StructTag) HasFlag(flag string) bool

func (StructTag) Name added in v0.0.6

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