reflectutil

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: Unlicense Imports: 1 Imported by: 0

Documentation

Overview

Package reflectutil contains various utilities that are useful when working with reflection

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewForType

func CreateNewForType(model interface{}) *interface{}

func GetModelName

func GetModelName(model interface{}) string

func NewFromType

func NewFromType(modelType reflect.Type) interface{}

func SetSlice

func SetSlice(valueSlice []interface{}, fieldValue reflect.Value)

func UnwrapType added in v0.3.1

func UnwrapType(typ reflect.Type) (unwrapped reflect.Type)

func UnwrapValue added in v0.3.1

func UnwrapValue(typ reflect.Value) (unwrapped reflect.Value)

Types

This section is empty.

Jump to

Keyboard shortcuts

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