Registry / utility / modern-go-reflect2

modern-go-reflect2

JSON →
library1.0.2gogounverified

Package reflect2 provides a reflection library with a simpler API and better performance than the standard reflect package.

go get github.com/modern-go/reflect2
INSTALL
IMPORT
SIG · MODERN-GO-REFLECT2
M
modern-go-reflect2
utilitygov1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

reflect2
✓ github.com/modern-go/reflect2

Gets the type information of a struct using reflect2.

package main import ( "fmt" "github.com/modern-go/reflect2" ) func main() { type MyStruct struct { Name string } t := reflect2.TypeOf(MyStruct{}) fmt.Println(t.String()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
modern-go-reflect2 — go get modern-go-reflect2 · libregistry