reflectx

package
v1.6.5-rc18 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAssertReflectType

func BasicAssertReflectType(v interface{}) reflect.Type

func DeRef

func DeRef(t reflect.Type) reflect.Type

func Indirect

func Indirect(v reflect.Value) reflect.Value

func IsBytes

func IsBytes(v interface{}) bool

func IsBytesType

func IsBytesType(t reflect.Type) bool

func IsEmptyValue

func IsEmptyValue(v interface{}) bool

func NatureType

func NatureType(v interface{}) (rt reflect.Type)

NatureType return the v's nature type, for example: Foo nature type is Foo *Foo nature type is Foo ***Foo nature type is Foo reflect.TypeOf(Foo) nature type is Foo (interface{})(Foo) nature type is Foo

func New

func New(t reflect.Type) reflect.Value

New a `reflect.Value` with reflect.Type

func ParseStructTag

func ParseStructTag(tag string) map[string]StructTag

func TagValueAndFlags

func TagValueAndFlags(tag string) (string, map[string]bool)

func TypeName

func TypeName(rt reflect.Type) string

Types

type StructTag

type StructTag string

func (StructTag) HasFlag

func (t StructTag) HasFlag(flg string) bool

func (StructTag) Name

func (t StructTag) Name() string

Jump to

Keyboard shortcuts

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