{"id":18517545,"url":"https://github.com/stevenferrer/mira","last_synced_at":"2025-08-08T18:50:08.398Z","repository":{"id":57537013,"uuid":"284833133","full_name":"stevenferrer/mira","owner":"stevenferrer","description":"This package wraps the reflect package and adds some useful methods for introspecting Go values","archived":false,"fork":false,"pushed_at":"2022-02-24T15:33:09.000Z","size":20,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T04:39:13.304Z","etag":null,"topics":["go","golang","reflect","reflection"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stevenferrer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-04T00:01:17.000Z","updated_at":"2024-11-27T02:12:06.000Z","dependencies_parsed_at":"2022-08-29T00:31:06.378Z","dependency_job_id":null,"html_url":"https://github.com/stevenferrer/mira","commit_stats":null,"previous_names":["sf9v/mira"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenferrer%2Fmira","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenferrer%2Fmira/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenferrer%2Fmira/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenferrer%2Fmira/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevenferrer","download_url":"https://codeload.github.com/stevenferrer/mira/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254171482,"owners_count":22026451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","reflect","reflection"],"created_at":"2024-11-06T17:04:33.623Z","updated_at":"2025-05-14T15:30:23.108Z","avatar_url":"https://github.com/stevenferrer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mira [![Go Report Card](https://goreportcard.com/badge/github.com/stevenferrer/mira)](https://goreportcard.com/report/github.com/stevenferrer/mira)\n\nThis package wraps the `reflect` package and adds some useful methods for introspecting Go values. \n\n## Installation\n\n```console\n$ go get github.com/stevenferrer/mira\n```\n\n## Usage\n\n```go\n\nimport (\n    \"fmt\"\n\n    \"github.com/stevenferrer/mira\"\n)\n\nfunc main() {\n    v := int64(1)\n    typeInfo := mira.NewTypeInfo(v)\n\n    // check if value is numeric\n    if typeInfo.IsNumeric() {\n        fmt.Println(\"value is a numeric type\")\n    }\n\n    // check if value is nillable\n    if typeInfo.IsNillable() {\n        fmt.Println(\"value is nillable\")\n    }\n\n    // print type's name\n    fmt.Println(typeInfo.Name())\n    // print type's pkg path\n    fmt.Println(typeInfo.PkgPath())\n    // print the interface value\n    fmt.Printf(\"%v\\n\", typeInfo.V())\n    // print the reflect.Type's string representation\n    fmt.Printf(\"%v\", typeInfo.T().String())\n    ...\n}\n```\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevenferrer%2Fmira","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevenferrer%2Fmira","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevenferrer%2Fmira/lists"}