{"id":18446690,"url":"https://github.com/cristalhq/atomix","last_synced_at":"2025-04-08T00:31:56.566Z","repository":{"id":98781460,"uuid":"178682666","full_name":"cristalhq/atomix","owner":"cristalhq","description":"Simple and easy wrappers for Go sync/atomic package.","archived":false,"fork":false,"pushed_at":"2024-03-03T13:43:30.000Z","size":64,"stargazers_count":31,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T03:24:49.853Z","etag":null,"topics":["atomic","concurrency","dependency-free","go","golang","wrapper"],"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/cristalhq.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-31T12:05:26.000Z","updated_at":"2024-01-25T18:15:25.000Z","dependencies_parsed_at":"2023-03-15T04:15:54.805Z","dependency_job_id":"178ebc04-04cc-4059-9955-c305950f1cba","html_url":"https://github.com/cristalhq/atomix","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristalhq%2Fatomix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristalhq%2Fatomix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristalhq%2Fatomix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristalhq%2Fatomix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cristalhq","download_url":"https://codeload.github.com/cristalhq/atomix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247755407,"owners_count":20990617,"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":["atomic","concurrency","dependency-free","go","golang","wrapper"],"created_at":"2024-11-06T07:10:02.595Z","updated_at":"2025-04-08T00:31:56.204Z","avatar_url":"https://github.com/cristalhq.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# atomix\r\n\r\n[![build-img]][build-url]\r\n[![pkg-img]][pkg-url]\r\n[![version-img]][version-url]\r\n\r\nBetter `sync/atomic` package for Go.\r\n\r\n## Rationale\r\n\r\nTo make life easier with `sync/atomic` this package provide wrappers and helper functions, so all the atomic data and operations are easily visible.\r\n\r\n## Note\r\n\r\nFor the better `sync` package see [synx](https://github.com/cristalhq/synx).\r\n\r\n## Features\r\n\r\n* All primitive types and more\r\n  * `int8`, `int16`, `int32`, `int64`\r\n  * `uint8`, `uint16`, uint32`, `uint64`\r\n  * `float32`, `float64`, `complex64` and `int`\r\n  * `string`, `interface{}` and `error`\r\n  * `uintptr`, `unsafe.Pointer`\r\n  * `time.Time`, `time.Duration`\r\n* Zero cpu and memory overhead in almost all cases.\r\n* Useful helpers.\r\n\r\nSee [docs][pkg-url].\r\n\r\n## Install\r\n\r\n```\r\ngo get github.com/cristalhq/atomix\r\n```\r\n\r\n## Example\r\n\r\n```go\r\nvar a atomix.Int32\r\na.Store(1335)\r\na.Add(2)\r\nb := a.Load() // 1337\r\n```\r\n\r\n## License\r\n\r\n[MIT License](LICENSE).\r\n\r\n[build-img]: https://github.com/cristalhq/atomix/workflows/build/badge.svg\r\n[build-url]: https://github.com/cristalhq/atomix/actions\r\n[pkg-img]: https://pkg.go.dev/badge/cristalhq/atomix\r\n[pkg-url]: https://pkg.go.dev/github.com/cristalhq/atomix\r\n[version-img]: https://img.shields.io/github/v/release/cristalhq/acmd\r\n[version-url]: https://github.com/cristalhq/acmd/releases\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristalhq%2Fatomix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcristalhq%2Fatomix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristalhq%2Fatomix/lists"}