reflectutil

package
v0.30.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 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

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