reflectx

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetElemDataValue

func GetElemDataValue(data interface{}) interface{}

func GetReference

func GetReference(service interface{}) string

GetReference return the reference id of the service. If the service implemented the ReferencedService interface, it will call the Reference method. If not, it will return the struct name as the reference id.

func GetUnexportedField

func GetUnexportedField(field reflect.Value) interface{}

func SetUnexportedField

func SetUnexportedField(field reflect.Value, value interface{})

Types

type ReferencedService

type ReferencedService interface {
	Reference() string
}

Jump to

Keyboard shortcuts

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