{"id":15525285,"url":"https://github.com/donatj/appsettings","last_synced_at":"2025-04-23T08:48:36.912Z","repository":{"id":24545185,"uuid":"27951862","full_name":"donatj/appsettings","owner":"donatj","description":"Simple Hierarchical Key/Value Store for Simple Go Runtime App Setting Storage","archived":false,"fork":false,"pushed_at":"2024-05-06T16:55:02.000Z","size":68,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T23:11:57.099Z","etag":null,"topics":["appsettings"],"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/donatj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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},"funding":{"custom":"https://www.paypal.me/donatj/15","ko_fi":"donatj","github":"donatj"}},"created_at":"2014-12-13T06:26:21.000Z","updated_at":"2024-05-06T16:55:05.000Z","dependencies_parsed_at":"2024-01-04T07:25:00.390Z","dependency_job_id":"399e2a69-c0a2-4dc9-b5c1-6618054c6096","html_url":"https://github.com/donatj/appsettings","commit_stats":{"total_commits":56,"total_committers":4,"mean_commits":14.0,"dds":0.2857142857142857,"last_synced_commit":"8fc1fcb659c2312369d6024a8f2eaf13a2d50bad"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donatj%2Fappsettings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donatj%2Fappsettings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donatj%2Fappsettings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donatj%2Fappsettings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donatj","download_url":"https://codeload.github.com/donatj/appsettings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250402613,"owners_count":21424750,"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":["appsettings"],"created_at":"2024-10-02T10:56:19.064Z","updated_at":"2025-04-23T08:48:36.881Z","avatar_url":"https://github.com/donatj.png","language":"Go","funding_links":["https://www.paypal.me/donatj/15","https://ko-fi.com/donatj","https://github.com/sponsors/donatj"],"categories":[],"sub_categories":[],"readme":"# AppSettings\n\n[![CI](https://github.com/donatj/appsettings/actions/workflows/ci.yml/badge.svg)](https://github.com/donatj/appsettings/actions/workflows/ci.yml)\n[![GoDoc](https://godoc.org/github.com/donatj/appsettings?status.svg)](https://godoc.org/github.com/donatj/appsettings)\n\nA hierarchical key value store for persisting simple runtime options in Go applications.\n\n## Example\n\n```go\ns := appsettings.NewAppSettings(\"settings.json\")\n\nt := s.GetTree(\"user-settings\")\n\n//set\nt.SetString(\"pizza\", \"pie\")\nt.SetInt(\"how-many-pugs\", 349)\n\n//read\nif v, err := t.GetInt(\"how-many-pugs\"); err == nil {\n\tlog.Println(v)\n}\n\nif v, err = t.GetString(\"pizza\"); err == nil {\n\tlog.Println(v)\n}\n\ns.Persist()\n```\n\n## CLI Tool Installation\n\n### From Source\n\n```bash\n$ go install github.com/donatj/appsettings/cmd/appsettings@latest\n```\n\n## Migration from v0.0.1\n\nThe JSON format for the early Alpha changed. To migrate your existing data compatibly to the more modern format, you can use [jq](https://stedolan.github.io/jq/) and execute the following command, first replacing `{your-file}` with the path to your actual database file.\n\n```bash\njq '.Tree |= with_entries(.value = {Leaves: .value} ) | . + {Branches: .Tree} | del(.Tree)' \u003c {your-file} \u003e tmp \u0026\u0026 mv tmp {your-fie}\n```\n\n## Documentation\n\nDocumentation can be found a godoc:\n\nhttps://godoc.org/github.com/donatj/appsettings\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonatj%2Fappsettings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonatj%2Fappsettings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonatj%2Fappsettings/lists"}