{"id":49878,"library":"modern-go-reflect2","title":"reflect2","description":"Package reflect2 provides a reflection library with a simpler API and better performance than the standard reflect package.","status":"active","version":"1.0.2","language":"go","source_language":null,"source_url":"https://github.com/modern-go/reflect2","tags":["reflection","reflect","utility"],"install":[{"cmd":"go get github.com/modern-go/reflect2","lang":"bash","label":"Install github.com/modern-go/reflect2"}],"dependencies":[],"imports":[{"symbol":"reflect2","correct":"github.com/modern-go/reflect2"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/modern-go/reflect2\"\n)\n\nfunc main() {\n\ttype MyStruct struct {\n\t\tName string\n\t}\n\tt := reflect2.TypeOf(MyStruct{})\n\tfmt.Println(t.String())\n}","lang":"go","description":"Gets the type information of a struct using reflect2."},"warnings":[],"env_vars":null,"search_vec":"'api':11 'better':13 'librari':7 'packag':2,19 'perform':14 'provid':4 'reflect':6,18,20,21 'reflect2':1,3 'simpler':10 'standard':17 'util':22","created_at":"2026-06-14T18:18:52.245786+00:00","updated_at":"2026-06-14T18:18:52.245786+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/modern-go/reflect2","github":"https://github.com/modern-go/reflect2","docs":"https://pkg.go.dev/github.com/modern-go/reflect2#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-14","next_check":"2026-12-11","install_tag":null}}