{"id":13411081,"url":"https://github.com/gurkankaymak/hocon","last_synced_at":"2026-01-18T02:39:18.016Z","repository":{"id":43867823,"uuid":"244200681","full_name":"gurkankaymak/hocon","owner":"gurkankaymak","description":"go implementation of lightbend's HOCON configuration library https://github.com/lightbend/config","archived":false,"fork":false,"pushed_at":"2025-11-19T16:38:51.000Z","size":102,"stargazers_count":86,"open_issues_count":13,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-19T18:13:58.281Z","etag":null,"topics":["configuration-library","configuration-parser","environment-variables","go","golang","hocon","hocon-configuration","hocon-syntax","json-parser"],"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/gurkankaymak.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-03-01T18:20:12.000Z","updated_at":"2025-11-19T16:24:53.000Z","dependencies_parsed_at":"2023-12-24T19:27:47.974Z","dependency_job_id":null,"html_url":"https://github.com/gurkankaymak/hocon","commit_stats":{"total_commits":79,"total_committers":13,"mean_commits":6.076923076923077,"dds":0.240506329113924,"last_synced_commit":"fd4b8e7a0906727a09eab96a664e628c295309d5"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/gurkankaymak/hocon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gurkankaymak%2Fhocon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gurkankaymak%2Fhocon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gurkankaymak%2Fhocon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gurkankaymak%2Fhocon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gurkankaymak","download_url":"https://codeload.github.com/gurkankaymak/hocon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gurkankaymak%2Fhocon/sbom","scorecard":{"id":449827,"data":{"date":"2025-08-11","repo":{"name":"github.com/gurkankaymak/hocon","commit":"e9c8ef383f86a53d56a4006ee796f085156fe6fc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":3,"reason":"Found 8/21 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 17 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T07:55:26.342Z","repository_id":43867823,"created_at":"2025-08-19T07:55:26.342Z","updated_at":"2025-08-19T07:55:26.342Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28526589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["configuration-library","configuration-parser","environment-variables","go","golang","hocon","hocon-configuration","hocon-syntax","json-parser"],"created_at":"2024-07-30T20:01:11.277Z","updated_at":"2026-01-18T02:39:17.967Z","avatar_url":"https://github.com/gurkankaymak.png","language":"Go","funding_links":[],"categories":["配置","Configuration","配置管理","Uncategorized","配置管理 `配置解析库`"],"sub_categories":["标准CLI","Standard CLI","Advanced Console UIs","标准 CLI"],"readme":"# HOCON (Human-Optimized Config Object Notation)\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/gurkankaymak/hocon)](https://goreportcard.com/report/github.com/gurkankaymak/hocon)\n[![codecov](https://codecov.io/gh/gurkankaymak/hocon/branch/master/graph/badge.svg)](https://codecov.io/gh/gurkankaymak/hocon)\n[![Build Status](https://travis-ci.org/gurkankaymak/hocon.svg?branch=master)](https://travis-ci.org/gurkankaymak/hocon)\n[![GoDoc](https://godoc.org/github.com/gurkankaymak/hocon?status.svg)](https://godoc.org/github.com/gurkankaymak/hocon)\n[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)\n\nConfiguration library for working with the Lightbend's HOCON format. HOCON is a human-friendly JSON superset\n\n### Features of HOCON\n\n  - Comments, with `#` or `//`\n  - Allow omitting the `{}` around a root object\n  - Allow `=` as a synonym for `:`\n  - Allow omitting the `=` or `:` before a `{` so\n    `foo { a : 42 }`\n  - Allow omitting commas as long as there's a newline\n  - Allow trailing commas after last element in objects and arrays\n  - Allow unquoted strings for keys and values\n  - Unquoted keys can use dot-notation for nested objects,\n    `foo.bar=42` means `foo { bar : 42 }`\n  - Duplicate keys are allowed; later values override earlier,\n    except for object-valued keys where the two objects are merged\n    recursively\n  - `include` feature merges root object in another file into\n    current object, so `foo { include \"bar.json\" }` merges keys in\n    `bar.json` into the object `foo`\n  - substitutions `foo : ${a.b}` sets key `foo` to the same value\n    as the `b` field in the `a` object\n  - substitutions concatenate into unquoted strings, `foo : the quick ${colors.fox} jumped`\n  - substitutions fall back to environment variables if they don't\n    resolve in the config itself, so `${HOME}` would work as you\n    expect.\n  - substitutions normally cause an error if unresolved, but\n    there is a syntax `${?a.b}` to permit them to be missing.\n  - `+=` syntax to append elements to arrays, `path += \"/bin\"`\n  - multi-line strings with triple quotes as in Python or Scala\n  \n  see the documentation for more details about the HOCON https://github.com/lightbend/config/blob/master/HOCON.md\n\n## Installation\n```go get -u github.com/gurkankaymak/hocon```\n\n## Usage\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"log\"\n    \"github.com/gurkankaymak/hocon\"\n)\n\nfunc main() {\n    hoconString := `\n    booleans {\n      trueVal: true\n      trueValAgain: ${booleans.trueVal}\n      trueWithYes: yes\n      falseWithNo: no\n    }\n    // this is a comment\n    #  this is also a comment\n    numbers {\n      intVal: 3\n      floatVal: 1.0\n    }\n    strings {\n      a: \"a\"\n      b: \"b\"\n      c: \"c\"\n    }\n    arrays {\n      empty: []\n      ofInt: [1, 2, 3]\n      ofString: [${strings.a}, ${strings.b}, ${strings.c}]\n      ofDuration: [1 second, 2h, 3 days]\n    }\n    durations {\n      second: 1s\n      halfSecond: 0.5 second\n      minutes: 5 minutes\n      hours: 2hours\n      day: 1d\n    }\n    objects {\n      valueObject {\n        mandatoryValue: \"mandatoryValue\"\n        arrayValue: ${arrays.ofInt}\n        nullValue: null\n      }\n    }`\n\n    conf, err := hocon.ParseString(hoconString)\n    if err != nil {\n        log.Fatal(\"error while parsing configuration: \", err)\n    }\n    objectValue := conf.GetObject(\"objects.valueObject\")\n    arrayValue := conf.GetArray(\"arrays.ofInt\")\n    stringValue := conf.GetString(\"strings.a\")\n    intValue := conf.GetInt(\"numbers.intVal\")\n    floatValue := conf.GetFloat64(\"numbers.floatVal\")\n    durationValue := conf.GetDuration(\"durations.second\")\n    fmt.Println(\"objectValue:\", objectValue) // {mandatoryValue:mandatoryValue, arrayValue:[1,2,3], nullValue:null}\n    fmt.Println(\"arrayValue:\", arrayValue) // [1,2,3]\n    fmt.Println(\"stringValue:\", stringValue) // a\n    fmt.Println(\"intValue:\", intValue) // 3\n    fmt.Println(\"floatValue:\", floatValue) // 1.0\n    fmt.Println(\"durationValue:\", durationValue) // 1s\n    fmt.Println(\"all configuration:\", conf)\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgurkankaymak%2Fhocon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgurkankaymak%2Fhocon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgurkankaymak%2Fhocon/lists"}