reflect package
Canonical docs for reflection, struct tags, dynamic types, and runtime type inspection.
Canonical docs for reflection, struct tags, dynamic types, and runtime type inspection.
- Author: Go Team
- Authority: primary
- Kind: package-doc
- URL: https://pkg.go.dev/reflect
What it covers
- reflection APIs
- struct tag inspection
- runtime type and value operations
Why authoritative
Official package documentation for Go reflection and dynamic type inspection.
Use when
- should I use reflection in Go
- how do I read struct tags in Go
- what does reflect allow here
Keywords
- reflect, reflection, struct tags, dynamic types, type inspection