{"id":13489906,"url":"https://github.com/uber-go/atomic","last_synced_at":"2025-05-12T15:38:20.312Z","repository":{"id":9099203,"uuid":"59526988","full_name":"uber-go/atomic","owner":"uber-go","description":"Wrapper types for sync/atomic which enforce atomic access","archived":false,"fork":false,"pushed_at":"2025-03-25T00:01:52.000Z","size":218,"stargazers_count":1395,"open_issues_count":15,"forks_count":106,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-04-13T12:41:00.845Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://go.uber.org/atomic","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/uber-go.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2016-05-24T00:12:01.000Z","updated_at":"2025-04-13T08:16:17.000Z","dependencies_parsed_at":"2024-10-16T12:00:48.452Z","dependency_job_id":"ac353023-bebf-496c-a1b9-80d50e3e855b","html_url":"https://github.com/uber-go/atomic","commit_stats":{"total_commits":135,"total_committers":30,"mean_commits":4.5,"dds":0.6814814814814815,"last_synced_commit":"df7bc75a1bb43fdc1f905256ac5b387b332b0028"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-go%2Fatomic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-go%2Fatomic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-go%2Fatomic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber-go%2Fatomic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uber-go","download_url":"https://codeload.github.com/uber-go/atomic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249572459,"owners_count":21293174,"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-07-31T19:00:37.546Z","updated_at":"2025-04-23T18:31:20.026Z","avatar_url":"https://github.com/uber-go.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# atomic [![GoDoc][doc-img]][doc] [![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov] [![Go Report Card][reportcard-img]][reportcard]\n\nSimple wrappers for primitive types to enforce atomic access.\n\n## Installation\n\n```shell\n$ go get -u go.uber.org/atomic@v1\n```\n\n### Legacy Import Path\n\nAs of v1.5.0, the import path `go.uber.org/atomic` is the only supported way\nof using this package. If you are using Go modules, this package will fail to\ncompile with the legacy import path path `github.com/uber-go/atomic`.\n\nWe recommend migrating your code to the new import path but if you're unable\nto do so, or if your dependencies are still using the old import path, you\nwill have to add a `replace` directive to your `go.mod` file downgrading the\nlegacy import path to an older version.\n\n```\nreplace github.com/uber-go/atomic =\u003e github.com/uber-go/atomic v1.4.0\n```\n\nYou can do so automatically by running the following command.\n\n```shell\n$ go mod edit -replace github.com/uber-go/atomic=github.com/uber-go/atomic@v1.4.0\n```\n\n## Usage\n\nThe standard library's `sync/atomic` is powerful, but it's easy to forget which\nvariables must be accessed atomically. `go.uber.org/atomic` preserves all the\nfunctionality of the standard library, but wraps the primitive types to\nprovide a safer, more convenient API.\n\n```go\nvar atom atomic.Uint32\natom.Store(42)\natom.Sub(2)\natom.CompareAndSwap(40, 11)\n```\n\nSee the [documentation][doc] for a complete API specification.\n\n## Development Status\n\nStable.\n\n---\n\nReleased under the [MIT License](LICENSE.txt).\n\n[doc-img]: https://godoc.org/github.com/uber-go/atomic?status.svg\n[doc]: https://godoc.org/go.uber.org/atomic\n[ci-img]: https://github.com/uber-go/atomic/actions/workflows/go.yml/badge.svg\n[ci]: https://github.com/uber-go/atomic/actions/workflows/go.yml\n[cov-img]: https://codecov.io/gh/uber-go/atomic/branch/master/graph/badge.svg\n[cov]: https://codecov.io/gh/uber-go/atomic\n[reportcard-img]: https://goreportcard.com/badge/go.uber.org/atomic\n[reportcard]: https://goreportcard.com/report/go.uber.org/atomic\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuber-go%2Fatomic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuber-go%2Fatomic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuber-go%2Fatomic/lists"}