reflect

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDataByFieldName

func GetDataByFieldName(data interface{}, filedName string) (interface{}, error)

典型reflect 操作 返回对应字段值

func StructToString

func StructToString(st interface{}) string

return struct string name

func ToMap added in v1.8.6

func ToMap(st interface{}) map[string]interface{}

struct to map

func ToSlice

func ToSlice(arr interface{}) []interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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