{"id":15631820,"url":"https://github.com/feliixx/boa","last_synced_at":"2026-05-17T18:02:23.045Z","repository":{"id":40473309,"uuid":"481069443","full_name":"feliixx/boa","owner":"feliixx","description":"minimalist configuration library for go ","archived":false,"fork":false,"pushed_at":"2022-07-19T05:14:12.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T19:49:35.885Z","etag":null,"topics":["configuration","golang","json"],"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/feliixx.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":"2022-04-13T04:26:51.000Z","updated_at":"2023-08-26T14:35:31.000Z","dependencies_parsed_at":"2022-08-09T21:30:53.300Z","dependency_job_id":null,"html_url":"https://github.com/feliixx/boa","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feliixx%2Fboa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feliixx%2Fboa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feliixx%2Fboa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feliixx%2Fboa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feliixx","download_url":"https://codeload.github.com/feliixx/boa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246230541,"owners_count":20744349,"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","golang","json"],"created_at":"2024-10-03T10:41:39.499Z","updated_at":"2026-05-17T18:02:22.973Z","avatar_url":"https://github.com/feliixx.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/feliixx/boa)](https://goreportcard.com/report/github.com/feliixx/boa)\n[![codecov](https://codecov.io/gh/feliixx/boa/branch/main/graph/badge.svg?token=NJ3F2CR3VA)](https://codecov.io/gh/feliixx/boa)\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/feliixx/boa)](https://pkg.go.dev/github.com/feliixx/boa)\n\n## boa\n\nA small configuration library for go application with a viper-like API, but with limited scope and no external dependency \n\nIt supports: \n\n  * reading a config in JSON or JSONC ( JSON with comments) \n  * setting default \n\n\n\n## example\n\n\n```go\nconfig := `\n{\n  \"http_server\": {\n    \"enabled\": true,\n    \"host\": \"127.0.0.1\"\n  }\n}`\n\nboa.SetDefault(\"http_server.port\", 80)\n\nerr := boa.ParseConfig(strings.NewReader(config))\nif err != nil {\n\tlog.Fatal(err)\n}\n\nsrvHost := boa.GetString(\"http_server.host\")\nsrvPort := boa.GetInt(\"http_server.port\")\n\nfmt.Printf(\"%s:%d\", srvHost, srvPort)\n// Output: 127.0.0.1:80\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeliixx%2Fboa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeliixx%2Fboa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeliixx%2Fboa/lists"}