llreflect

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChaseValue added in v0.3.0

func ChaseValue(v reflect.Value) reflect.Value

ChaseValue takes a value and returns the underlying type even if it is nested inpointers or wrapped in interface{}

func InterfaceToMap

func InterfaceToMap(o interface{}) map[string]interface{}

InterfaceToMap converts the given interface to a map[string]interface{}.

func InterfaceToSliceOfInterfaces

func InterfaceToSliceOfInterfaces(o interface{}) []interface{}

InterfaceToSliceOfInterfaces coerces the given interface into a slice of []interface{}. If the given interface is already []interface{} lets it pass through. If it's another slice type it converts all values to interface{}.

Types

This section is empty.

Jump to

Keyboard shortcuts

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