dynamic

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldsByStructTag

func FieldsByStructTag(key string, rec interface{}) ([]reflect.Value, []string)

Returns all fields of rec that have a non-empty struct tag of the given key and all corresponding tag values. Returns nil, nil if no such fields were found. "rec" must be a pointer to a struct.

func SetStructField

func SetStructField(name string, rec, data interface{})

assigns data to field name of struct rec

func SetStructFieldCallback

func SetStructFieldCallback(name string, rec, callback interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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