reflectutil

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetField

func GetField(i any, fieldPath ...string) (any, error)

func GetString

func GetString(i any, key string) string

func IsNil

func IsNil(i any) bool

func Set

func Set(i any, key string, value any)

func SliceInterfaceToString

func SliceInterfaceToString(raws any) []string

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

func TypeName

func TypeName(i any) 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