{"id":13686834,"url":"https://github.com/coreos/go-semver","last_synced_at":"2025-05-14T17:09:07.255Z","repository":{"id":9720301,"uuid":"11676453","full_name":"coreos/go-semver","owner":"coreos","description":"semver library in Go","archived":false,"fork":false,"pushed_at":"2024-01-03T21:11:00.000Z","size":60,"stargazers_count":352,"open_issues_count":6,"forks_count":50,"subscribers_count":20,"default_branch":"main","last_synced_at":"2025-05-14T17:08:18.662Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://semver.org","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coreos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"code-of-conduct.md","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}},"created_at":"2013-07-26T03:01:53.000Z","updated_at":"2025-05-05T08:52:25.000Z","dependencies_parsed_at":"2024-06-18T12:26:32.756Z","dependency_job_id":null,"html_url":"https://github.com/coreos/go-semver","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreos%2Fgo-semver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreos%2Fgo-semver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreos%2Fgo-semver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreos%2Fgo-semver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coreos","download_url":"https://codeload.github.com/coreos/go-semver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254190395,"owners_count":22029632,"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":"2024-08-02T15:00:41.383Z","updated_at":"2025-05-14T17:09:07.235Z","avatar_url":"https://github.com/coreos.png","language":"Go","funding_links":[],"categories":["开源类库","Go","Open source library"],"sub_categories":["未归类","Not Categorized"],"readme":"# go-semver - Semantic Versioning Library\n\n[![GoDoc](https://godoc.org/github.com/coreos/go-semver/semver?status.svg)](https://godoc.org/github.com/coreos/go-semver/semver)\n\ngo-semver is a [semantic versioning][semver] library for Go. It lets you parse\nand compare two semantic version strings.\n\n[semver]: http://semver.org/\n\n## Usage\n\n```go\nvA := semver.New(\"1.2.3\")\nvB := semver.New(\"3.2.1\")\n\nfmt.Printf(\"%s \u003c %s == %t\\n\", vA, vB, vA.LessThan(*vB))\n```\n\n## Example Application\n\n```\n$ go run example.go 1.2.3 3.2.1\n1.2.3 \u003c 3.2.1 == true\n\n$ go run example.go 5.2.3 3.2.1\n5.2.3 \u003c 3.2.1 == false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoreos%2Fgo-semver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoreos%2Fgo-semver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoreos%2Fgo-semver/lists"}