unsafereflect

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeMutable

func MakeMutable(v reflect.Value) reflect.Value

MakeMutable returns a copy of v with read-only restrictions removed.

This allows invocation of methods on the value. Care must be taken not to call methods that modify the returned value.

It panics if the value can not be made mutable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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