reflectutil

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetField

func GetField(item interface{}, fieldPath ...string) (interface{}, error)

func GetString

func GetString(i interface{}, key string) string

func IsNil added in v1.3.0

func IsNil(i interface{}) bool

func Set

func Set(i interface{}, key string, value interface{})

func SliceInterfaceToString

func SliceInterfaceToString(raws interface{}) []string

SliceInterfaceToString converts an `interface{}` to a `[]string`.

func TypeName

func TypeName(myvar interface{}) (res string)

TypeName returns the name of a struct. stackoverflow-answerId:1908967

Types

This section is empty.

Jump to

Keyboard shortcuts

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