go/doc/next/6-stdlib/99-minor/reflect/62121.md

216 B

The new [TypeAssert] function permits converting a [Value] directly to a Go value of the given type. This is like using a type assertion on the result of [Value.Interface], but avoids unnecessary memory allocations.