{"id":26178676,"url":"https://github.com/loadsmart/calver-go","last_synced_at":"2025-10-11T04:43:15.602Z","repository":{"id":57569253,"uuid":"343899878","full_name":"loadsmart/calver-go","owner":"loadsmart","description":"Parse and increment version based on calver.org strategy.","archived":false,"fork":false,"pushed_at":"2024-08-06T17:35:24.000Z","size":23,"stargazers_count":7,"open_issues_count":2,"forks_count":1,"subscribers_count":55,"default_branch":"master","last_synced_at":"2025-03-28T10:47:32.651Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loadsmart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-02T20:11:59.000Z","updated_at":"2024-09-24T10:17:21.000Z","dependencies_parsed_at":"2023-11-30T21:29:35.985Z","dependency_job_id":"9f2c932f-d6b0-4292-aaa0-03fa339785de","html_url":"https://github.com/loadsmart/calver-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsmart%2Fcalver-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsmart%2Fcalver-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsmart%2Fcalver-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loadsmart%2Fcalver-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loadsmart","download_url":"https://codeload.github.com/loadsmart/calver-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248970725,"owners_count":21191478,"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":[],"created_at":"2025-03-11T21:42:05.396Z","updated_at":"2025-10-11T04:43:10.578Z","avatar_url":"https://github.com/loadsmart.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# calver-go - The Calendar Versioner for go\n\nParse and increment version based on [calver.org](https://calver.org/) strategy.\n\n[![CircleCI](https://circleci.com/gh/loadsmart/calver-go.svg?style=svg\u0026circle-token=66bca7a1bfc187f8e93d8876f70596be9eeff346)](https://circleci.com/gh/loadsmart/calvergo)\n\nInstall\n```shell\ngo get github.com/loadsmart/calver-go\n```\n\nUsage\n```go\nimport \"github.com/loadsmart/calver-go/calver\"\n\nlatest, err := calver.Parse(\"YYYY.MM.DD.MICRO\", \"2019.11.27.1\")\nmicro := latest.Next() // if today is 11/27/2019 then version == 2019.11.27.2\nmajor := latest.Next() // if today is 11/28/2019 then version == 2019.11.28.1\n\nbrandNewVersion := calver.NewVersion('YYYY.MM.DD.MICRO', 0) // if today is 11/28/2019 then version == 2019.11.28.1\nbrandNewVersion.String() // \"2019.11.28.1\"\n```\n\n### Caveats\n* support only the conventions below:\n  * YYYY\n  * YY\n  * 0Y\n  * MM\n  * M0\n  * 0M\n  * DD\n  * D0\n  * 0D\n  * MICRO (a.k.a build)\n\nTODO\n* export as command-line tool\n* add support to other conventions\n\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floadsmart%2Fcalver-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floadsmart%2Fcalver-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floadsmart%2Fcalver-go/lists"}