{"id":29135086,"url":"https://github.com/kusokaihatsusha/easy_settings","last_synced_at":"2026-04-19T17:08:08.986Z","repository":{"id":43916963,"uuid":"350411355","full_name":"KusoKaihatsuSha/easy_settings","owner":"KusoKaihatsuSha","description":"Package for savings JSON settings to single-alone database (type Bolt) with use minimal counts of lines code.","archived":false,"fork":false,"pushed_at":"2022-07-08T04:49:54.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T09:07:01.651Z","etag":null,"topics":["bolt","boltdb","easy-to-use","json","settings","wrapper-library"],"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/KusoKaihatsuSha.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":"2021-03-22T16:21:48.000Z","updated_at":"2022-05-13T10:33:15.000Z","dependencies_parsed_at":"2022-08-24T05:21:23.831Z","dependency_job_id":null,"html_url":"https://github.com/KusoKaihatsuSha/easy_settings","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/KusoKaihatsuSha/easy_settings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusoKaihatsuSha%2Feasy_settings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusoKaihatsuSha%2Feasy_settings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusoKaihatsuSha%2Feasy_settings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusoKaihatsuSha%2Feasy_settings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KusoKaihatsuSha","download_url":"https://codeload.github.com/KusoKaihatsuSha/easy_settings/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KusoKaihatsuSha%2Feasy_settings/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262744899,"owners_count":23357488,"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":["bolt","boltdb","easy-to-use","json","settings","wrapper-library"],"created_at":"2025-06-30T09:07:02.700Z","updated_at":"2026-04-19T17:08:08.957Z","avatar_url":"https://github.com/KusoKaihatsuSha.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![godoc](https://godoc.org/github.com/KusoKaihatsuSha/easy_settings?status.svg)](https://godoc.org/github.com/KusoKaihatsuSha/easy_settings) [![Go Report Card](https://goreportcard.com/badge/github.com/KusoKaihatsuSha/easy_settings)](https://goreportcard.com/report/github.com/KusoKaihatsuSha/easy_settings)\n\n# Source package for easy saving settings\nPackage for savings JSON settings to single-alone database (type Bolt) with use minimal counts of lines code.\n\n### Add to use\n\n```\n$ go get github.com/KusoKaihatsuSha/easy_settings.git\n```\n\n### Usage example\n\nIn example will be created database `data.db` in same folder and create `data_group.json` as export settings from database\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\tes \"github.com/KusoKaihatsuSha/easy_settings\"\n)\n\nfunc main() {\n\tes.Pack(\"group\").Item(\"test011\").Add(\"id001\", \"001\").Add(\"id002\", \"002\")\n\tes.Pack(\"group\").Item(\"test012\").Add(\"id003\", \"003\")\n\tes.Pack(\"group\").Item(\"test021\").Add(\"id004\", \"004\")\n\tfmt.Println(es.Pack(\"group\").Item(\"test011\", true).Get(\"id001\"))\n\tfmt.Println(es.Pack(\"group\").Item(\"test01\", true).Get(\"id\", true))\n\tfmt.Println(es.Pack(\"group\").Item(\"test\", true).Get(\"id\", true))\n\tes.Pack(\"group\").Item(\"test\", true).SaveJson()\n}\n\n```\n\n### Output file if using `SaveJson()`\n\n```json\n{\n  \"ID\": \"4t81omdwfn8Am65c\",\n  \"Name\": \"group\",\n  \"Items\": [\n    {\n      \"Parent\": null,\n      \"Name\": \"test011\",\n      \"ID\": \"5pqsia7a5vC5lv67\",\n      \"Values\": [\n        {\n          \"Key\": \"id001\",\n          \"Value\": \"001\"\n        },\n        {\n          \"Key\": \"id002\",\n          \"Value\": \"002\"\n        }\n      ]\n    },\n    {\n      \"Parent\": null,\n      \"Name\": \"test012\",\n      \"ID\": \"106UtcxTnn1w5Ux6\",\n      \"Values\": [\n        {\n          \"Key\": \"id003\",\n          \"Value\": \"003\"\n        }\n      ]\n    },\n    {\n      \"Parent\": null,\n      \"Name\": \"test021\",\n      \"ID\": \"oeBj70fWn8gnjj65\",\n      \"Values\": [\n        {\n          \"Key\": \"id004\",\n          \"Value\": \"004\"\n        }\n      ]\n    }\n  ],\n  \"Db\": null,\n  \"Uniq\": false\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkusokaihatsusha%2Feasy_settings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkusokaihatsusha%2Feasy_settings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkusokaihatsusha%2Feasy_settings/lists"}