reflect

package
v0.0.0-...-b7aacc1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create[T any]() T

Create returns a new value of type T, where T is any regular value or reference type. Panics when T is a multi-pointer (e.g. **string) or interface type.

func IsInterface

func IsInterface[T any]() bool

IsInterface returns true if the generic type is an interface and not a concrete type

Types

This section is empty.

Jump to

Keyboard shortcuts

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