{"id":36694203,"url":"https://github.com/ilya1st/configuration-go","last_synced_at":"2026-01-12T11:26:24.859Z","repository":{"id":59046257,"uuid":"105289217","full_name":"ilya1st/configuration-go","owner":"ilya1st","description":"Golang library to ease work with configuration files. For now with HJSON","archived":false,"fork":false,"pushed_at":"2022-09-03T22:30:05.000Z","size":879,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T10:22:01.899Z","etag":null,"topics":["config","configuration","golang","hjson"],"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/ilya1st.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-09-29T15:38:24.000Z","updated_at":"2024-06-20T10:22:01.899Z","dependencies_parsed_at":"2022-09-11T06:50:55.445Z","dependency_job_id":null,"html_url":"https://github.com/ilya1st/configuration-go","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ilya1st/configuration-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilya1st%2Fconfiguration-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilya1st%2Fconfiguration-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilya1st%2Fconfiguration-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilya1st%2Fconfiguration-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ilya1st","download_url":"https://codeload.github.com/ilya1st/configuration-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ilya1st%2Fconfiguration-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["config","configuration","golang","hjson"],"created_at":"2026-01-12T11:26:24.158Z","updated_at":"2026-01-12T11:26:24.854Z","avatar_url":"https://github.com/ilya1st.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# configuration-go\n\n[![Build Status](https://travis-ci.org/ilya1st/configuration-go.svg?branch=master)](https://travis-ci.org/ilya1st/configuration-go)[![Go Report Card](https://goreportcard.com/badge/github.com/ilya1st/configuration-go)](https://goreportcard.com/report/github.com/ilya1st/configuration-go)\n\nThe configuration-go package intended for normal work with configuration files.\nFor now we support HJSON format three-like configs.\nLibrary is intended to ease getting configuration file values if you know path to them\n\n## Install\n\nMake sure you have a working Go environment. See the [install instructions](http://golang.org/doc/install.html).\n\n$ go get -u github.com/ilya1st/configuration-go\n\n## Usage as command line tool\n\nSample:\n\nFor example: we have file test.hjson\n\n## Usage as a GO library\n\n```go\npackage main\nimport(\n  \"fmt\"\n  \"github.com/ilya1st/configuration-go\"\n)\n\nfunc main(){\n  config, err:=configuration.GetConfigInstance(\"mainconfig\", \"HJSON\", \"test.hjson\")\n  if err != nil {\n    fmt.Printf(\"Error occurred %v\\n\", err);\n  }\n  val, err:=config.GetValue(\"section1\", \"subsection2\", \"value\")\n  fmt.Printf(\"getting section1/subsection2/value: val=%v, error=%v\\n\", val, err)\n  val, err=config.GetValue(\"test\")\n  fmt.Printf(\"getting test: val=%v, error=%v\\n\", val, err)\n}\n\n```\n\nSee examples directory.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filya1st%2Fconfiguration-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filya1st%2Fconfiguration-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filya1st%2Fconfiguration-go/lists"}