reflectutil

package
v0.41.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 3 Imported by: 1

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