{"id":19608438,"url":"https://github.com/rafaeljesus/safe","last_synced_at":"2025-04-27T20:32:49.278Z","repository":{"id":57601498,"uuid":"94365099","full_name":"rafaeljesus/safe","owner":"rafaeljesus","description":"Thread-safe for any value :lock: ","archived":false,"fork":false,"pushed_at":"2017-06-14T19:17:35.000Z","size":2,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T03:13:03.020Z","etag":null,"topics":["clean-code","go","threadsafe"],"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/rafaeljesus.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}},"created_at":"2017-06-14T19:17:20.000Z","updated_at":"2022-03-25T05:46:28.000Z","dependencies_parsed_at":"2022-09-26T20:00:39.722Z","dependency_job_id":null,"html_url":"https://github.com/rafaeljesus/safe","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/rafaeljesus%2Fsafe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaeljesus%2Fsafe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaeljesus%2Fsafe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaeljesus%2Fsafe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafaeljesus","download_url":"https://codeload.github.com/rafaeljesus/safe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251204651,"owners_count":21552261,"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":["clean-code","go","threadsafe"],"created_at":"2024-11-11T10:15:21.312Z","updated_at":"2025-04-27T20:32:49.060Z","avatar_url":"https://github.com/rafaeljesus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Safe\n\n* Thread-safe for any value.\n\n## Installation\n```bash\ngo get -u github.com/rafaeljesus/safe\n```\n\n## Usage\n```go\npackage main\n\nimport \"github.com/rafaeljesus/safe\"\n\nfunc main() {\n  data := map[string]interface{}{\"key\": \"value\"}\n  s := New(data)\n  result, ok := s.Get().(map[string]interface{})\n  if !ok {\n    // wrong type\n  }\n  // do something\n}\n```\n\n## Contributing\n- Fork it\n- Create your feature branch (`git checkout -b my-new-feature`)\n- Commit your changes (`git commit -am 'Add some feature'`)\n- Push to the branch (`git push origin my-new-feature`)\n- Create new Pull Request\n\n## Badges\n\n[![Build Status](https://circleci.com/gh/rafaeljesus/safe.svg?style=svg)](https://circleci.com/gh/rafaeljesus/safe)\n[![Go Report Card](https://goreportcard.com/badge/github.com/rafaeljesus/safe)](https://goreportcard.com/report/github.com/rafaeljesus/safe)\n[![Go Doc](https://godoc.org/github.com/rafaeljesus/safe?status.svg)](https://godoc.org/github.com/rafaeljesus/safe)\n\n---\n\n\u003e GitHub [@rafaeljesus](https://github.com/rafaeljesus) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e Medium [@_jesus_rafael](https://medium.com/@_jesus_rafael) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e Twitter [@_jesus_rafael](https://twitter.com/_jesus_rafael)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaeljesus%2Fsafe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaeljesus%2Fsafe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaeljesus%2Fsafe/lists"}