{"id":22397034,"url":"https://github.com/atrox/store","last_synced_at":"2025-03-26T23:20:26.399Z","repository":{"id":57525674,"uuid":"106415733","full_name":"Atrox/store","owner":"Atrox","description":"Simple, painless, zero-config configuration storage","archived":false,"fork":false,"pushed_at":"2017-10-11T10:27:00.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T05:14:02.286Z","etag":null,"topics":["configuration","configuration-management","golang","simple"],"latest_commit_sha":null,"homepage":null,"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/Atrox.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-10-10T12:42:13.000Z","updated_at":"2019-01-28T15:57:08.000Z","dependencies_parsed_at":"2022-09-07T10:21:02.633Z","dependency_job_id":null,"html_url":"https://github.com/Atrox/store","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fstore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fstore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fstore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fstore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Atrox","download_url":"https://codeload.github.com/Atrox/store/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245750264,"owners_count":20666146,"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":["configuration","configuration-management","golang","simple"],"created_at":"2024-12-05T06:10:16.651Z","updated_at":"2025-03-26T23:20:26.383Z","avatar_url":"https://github.com/Atrox.png","language":"Go","readme":"# Store\n\n[![Build Status](https://img.shields.io/travis/Atrox/store.svg?style=flat-square)](https://travis-ci.org/Atrox/store)\n[![Coverage Status](https://img.shields.io/coveralls/Atrox/store.svg?style=flat-square)](https://coveralls.io/r/Atrox/store)\n[![Go Report Card](https://goreportcard.com/badge/github.com/Atrox/store?style=flat-square)](https://goreportcard.com/report/github.com/Atrox/store)\n[![GoDoc](https://img.shields.io/badge/godoc-reference-5272B4.svg?style=flat-square)](https://godoc.org/github.com/Atrox/store)\n\n\u003e Simple, painless, zero-config configuration storage\n\n## Installation\n\n```sh\ngo get -u github.com/atrox/store\n# or with dep\ndep ensure -add github.com/atrox/store\n```\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/atrox/store\"\n)\n\ntype Config struct {\n\tName string `yaml:\"name\"`\n\tAge  int    `yaml:\"age\"`\n}\n\nfunc main() {\n\tstorage, err := store.New(\"testapp\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tconfig := \u0026Config{\n\t\tName: \"Dr. Robert Ford\",\n\t\tAge:  70,\n\t}\n\terr = storage.Save(config)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Printf(\"config is now saved at %s\\n\", storage.Path(config))\n\t// ~/.config/testapp/config.yaml\n\n\tconfig = \u0026Config{}\n\terr = storage.Get(config)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Printf(\"Config retrieved:\\n%+v\\n\", config)\n\t// \u0026{Name:Dr. Robert Ford Age:70}\n}\n```\n\n## Contributing\n\nEveryone is encouraged to help improve this project. Here are a few ways you can help:\n\n- [Report bugs](https://github.com/atrox/store/issues)\n- Fix bugs and [submit pull requests](https://github.com/atrox/store/pulls)\n- Write, clarify, or fix documentation\n- Suggest or add new features\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatrox%2Fstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatrox%2Fstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatrox%2Fstore/lists"}