reflection

package
v0.0.0-...-fcd50c7 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

包 reflection 提供了一些内部使用的反射功能。 md5:7756a0414576baff

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValueToInterface

func ValueToInterface(v reflect.Value) (value interface{}, ok bool)

ValueToInterface 将反射值转换为其接口类型。 md5:a59b428949b9dde2

Types

type OriginTypeAndKindOutput

type OriginTypeAndKindOutput struct {
	InputType  reflect.Type
	InputKind  reflect.Kind
	OriginType reflect.Type
	OriginKind reflect.Kind
}

func OriginTypeAndKind

func OriginTypeAndKind(value interface{}) (out OriginTypeAndKindOutput)

OriginTypeAndKind 获取并返回原始反射类型和种类。 md5:ee62836f1445e493

type OriginValueAndKindOutput

type OriginValueAndKindOutput struct {
	InputValue  reflect.Value
	InputKind   reflect.Kind
	OriginValue reflect.Value
	OriginKind  reflect.Kind
}

func OriginValueAndKind

func OriginValueAndKind(value interface{}) (out OriginValueAndKindOutput)

OriginValueAndKind 获取并返回原始的反射值和类型。 md5:e2cdf5d39aa2b981

Jump to

Keyboard shortcuts

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