reflection

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package reflection exports nothing.

A function value carries its parameter types in its own type, a struct's fields are known to the compiler, and a type assertion asks at the call site what a runtime lookup would only ask later. Nothing in this module needs a package for reading types back at run time, so none is provided.

Where the same information is needed in order to emit code, it is read from go/ast at build time, which makes a wrong answer a build failure rather than a panic in production.

Jump to

Keyboard shortcuts

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