{"id":13809075,"url":"https://github.com/earthboundkid/versioninfo","last_synced_at":"2025-12-16T01:11:02.226Z","repository":{"id":38189584,"uuid":"425946234","full_name":"earthboundkid/versioninfo","owner":"earthboundkid","description":"Importable package that parses version info from debug.ReadBuildInfo().","archived":false,"fork":false,"pushed_at":"2024-11-11T00:35:39.000Z","size":15,"stargazers_count":282,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-04T01:09:33.981Z","etag":null,"topics":["git","go","golang","version-control-system","versioning","versions"],"latest_commit_sha":null,"homepage":"https://blog.carlana.net/post/2023/golang-git-hash-how-to/","language":"Go","has_issues":false,"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/earthboundkid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"earthboundkid"}},"created_at":"2021-11-08T18:14:39.000Z","updated_at":"2025-03-29T01:52:56.000Z","dependencies_parsed_at":"2025-01-08T09:01:27.586Z","dependency_job_id":"8450c1f1-ea7f-4a8c-89b8-7add7a270354","html_url":"https://github.com/earthboundkid/versioninfo","commit_stats":{"total_commits":17,"total_committers":3,"mean_commits":5.666666666666667,"dds":"0.11764705882352944","last_synced_commit":"186e0577a42cee3b004e2a4b14f4155cb391fce0"},"previous_names":["earthboundkid/versioninfo","carlmjohnson/versioninfo"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthboundkid%2Fversioninfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthboundkid%2Fversioninfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthboundkid%2Fversioninfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthboundkid%2Fversioninfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/earthboundkid","download_url":"https://codeload.github.com/earthboundkid/versioninfo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625501,"owners_count":21135513,"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":["git","go","golang","version-control-system","versioning","versions"],"created_at":"2024-08-04T01:02:00.599Z","updated_at":"2025-12-16T01:11:02.176Z","avatar_url":"https://github.com/earthboundkid.png","language":"Go","funding_links":["https://github.com/sponsors/earthboundkid"],"categories":["Go"],"sub_categories":[],"readme":"# versioninfo [![GoDoc](https://godoc.org/github.com/earthboundkid/versioninfo?status.svg)](https://godoc.org/github.com/earthboundkid/versioninfo/v2) [![Go Report Card](https://goreportcard.com/badge/github.com/earthboundkid/versioninfo/v2)](https://goreportcard.com/report/github.com/earthboundkid/versioninfo/v2)\n\nImportable package that parses `debug.ReadBuildInfo()` for inclusion in your Go application. Requires Go 1.18+.\n\n## Examples\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/earthboundkid/versioninfo/v2\"\n)\n\nfunc main() {\n    fmt.Println(\"Version:\", versioninfo.Version)\n    fmt.Println(\"Revision:\", versioninfo.Revision)\n    fmt.Println(\"DirtyBuild:\", versioninfo.DirtyBuild)\n    fmt.Println(\"LastCommit:\", versioninfo.LastCommit)\n}\n```\n\nYou may use the concatenated information provided by `versioninfo.Short()`:\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/earthboundkid/versioninfo/v2\"\n)\n\nfunc main() {\n    fmt.Println(\"ShortInfo:\", versioninfo.Short())\n}\n```\n\nAdd the `-v` and `-version` flags:\n\n```go\npackage main\n\nimport (\n    \"flag\"\n    \"fmt\"\n\n    \"github.com/earthboundkid/versioninfo/v2\"\n)\n\nfunc main() {\n    versioninfo.AddFlag(nil)\n    flag.Parse()\n    fmt.Println(\"done\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fearthboundkid%2Fversioninfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fearthboundkid%2Fversioninfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fearthboundkid%2Fversioninfo/lists"}