reflect

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFieldTag

func GetFieldTag(val interface{}, field string, key string) string

GetFieldTag returns the value of a struct field's tag.

func StructFields

func StructFields(iface interface{}) ([]std_reflect.StructField, []std_reflect.Value)

StructFields returns all fields, including embedding, found in the value recursively.

Pointer input values are supported.

Based on http://stackoverflow.com/a/24333912

Types

This section is empty.

Jump to

Keyboard shortcuts

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