{"id":19521595,"url":"https://github.com/goreflect/go_hocon","last_synced_at":"2026-06-15T15:32:06.520Z","repository":{"id":57515336,"uuid":"234371101","full_name":"goreflect/go_hocon","owner":"goreflect","description":"Hocon parser for Go","archived":false,"fork":false,"pushed_at":"2020-04-03T17:19:03.000Z","size":166,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-15T09:24:14.995Z","etag":null,"topics":["configuration","golang","hocon"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goreflect.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":"2020-01-16T17:12:32.000Z","updated_at":"2020-04-03T17:19:07.000Z","dependencies_parsed_at":"2022-08-30T01:42:03.668Z","dependency_job_id":null,"html_url":"https://github.com/goreflect/go_hocon","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/goreflect/go_hocon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goreflect%2Fgo_hocon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goreflect%2Fgo_hocon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goreflect%2Fgo_hocon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goreflect%2Fgo_hocon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goreflect","download_url":"https://codeload.github.com/goreflect/go_hocon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goreflect%2Fgo_hocon/sbom","scorecard":{"id":441536,"data":{"date":"2025-08-11","repo":{"name":"github.com/goreflect/go_hocon","commit":"b03dbccb21d425962abf56a17024bde0b47cc809"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Code-Review","score":3,"reason":"Found 4/11 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/goreflect/go_hocon/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/goreflect/go_hocon/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/goreflect/go_hocon/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/goreflect/go_hocon/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/goreflect/go_hocon/ci.yml/master?enable=pin","Warn: goCommand not pinned by hash: .github/workflows/ci.yml:27","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   1 goCommand dependencies pinned"],"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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 23 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"}},{"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"}}]},"last_synced_at":"2025-08-19T05:41:57.236Z","repository_id":57515336,"created_at":"2025-08-19T05:41:57.237Z","updated_at":"2025-08-19T05:41:57.237Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34369840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"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","golang","hocon"],"created_at":"2024-11-11T00:33:30.585Z","updated_at":"2026-06-15T15:32:06.493Z","avatar_url":"https://github.com/goreflect.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"#HOCON (Human-Optimized Config Object Notation)\n[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white\u0026style=flat-square)](https://pkg.go.dev/github.com/goreflect/go_hocon)\n\n[HOCON Docs](https://github.com/typesafehub/config/blob/master/HOCON.md).\n\n\u003e Currently, some features are not implemented, the API might be a little changed in the future.\n\n\n`example.go`\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n  \"github.com/goreflect/go_hocon\"\n)\n\nvar configText = `\n####################################\n# Typesafe HOCON                   #\n####################################\n\nconfig {\n  # Comment\n  version = \"0.0.1\"\n  one-second = 1s\n  one-day = 1day\n  array = [\"one\", \"two\", \"three\"] #comment\n  bar = \"bar\"\n  foo = foo.${config.bar} \n  number = 1\n  object {\n    a = \"a\"\n    b = \"b\"\n    c = {\n            d = ${config.object.a} //comment\n        }\n    }\n}\n// fallback\nconfig.object.a=\"newA\"\nconfig.object.c.f=\"valueF\"\n\n// self reference\nself-ref=1\nself-ref=[${self-ref}][2]\n\n// byte size\nbyte-size=10MiB\n\n// system envs\nhome:${HOME}\n\nplus-equal=foo\nplus-equal+=bar\n\nplus-equal-array=[foo]\nplus-equal-array+=[bar, ${HOME}]\n`\n\nfunc main() {\n\tconf, _ := configuration.ParseString(configText)\n\n\tduration, _ := conf.GetTimeDuration(\"config.one-second\")\n\tfmt.Println(\"config.one-second:\", duration)\n\n\ttimeDuration, _ := conf.GetTimeDuration(\"config.one-day\")\n\tfmt.Println(\"config.one-day:\", timeDuration)\n\n\tlist, _ := conf.GetStringList(\"config.array\")\n\tfmt.Println(\"config.array:\", list)\n\n\tgetString, _ := conf.GetString(\"config.bar\")\n\tfmt.Println(\"config.bar:\", getString)\n\n\ts, _ := conf.GetString(\"config.foo\")\n\tfmt.Println(\"config.foo:\", s)\n\n\tgetInt64, _ := conf.GetInt64(\"config.number\")\n\tfmt.Println(\"config.number:\", getInt64)\n\n\ts2, _ := conf.GetString(\"config.object.a\")\n\tfmt.Println(\"config.object.a:\", s2)\n\n\ts3, _ := conf.GetString(\"config.object.c.d\")\n\tfmt.Println(\"config.object.c.d:\", s3)\n\n\ts4, _ := conf.GetString(\"config.object.c.f\")\n\tfmt.Println(\"config.object.c.f:\", s4)\n\n\tint64List, _ := conf.GetInt64List(\"self-ref\")\n\tfmt.Println(\"self-ref:\", int64List)\n\n\tsize, _ := conf.GetByteSize(\"byte-size\")\n\tfmt.Println(\"byte-size:\", size)\n\n\ts5, _ := conf.GetString(\"home\")\n\tfmt.Println(\"home:\", s5)\n\n\ts6, _ := conf.GetString(\"none\", \"default-value\")\n\tfmt.Println(\"default:\", s6)\n\n\ts7, _ := conf.GetString(\"plus-equal\")\n\tfmt.Println(\"plus-equal:\", s7)\n\n\tstringList, _ := conf.GetStringList(\"plus-equal-array\")\n\tfmt.Println(\"plus-equal-array:\", stringList)\n}\n\n```\n\n```bash\n\u003e go run example.go\nconfig.one-second: 1s\nconfig.one-day: 24h0m0s\nconfig.array: [one two three]\nconfig.bar: bar\nconfig.foo: foo.bar\nconfig.number: 1\nconfig.object.a: newA\nconfig.object.c.d: a\nconfig.object.c.f: valueF\nself-ref: [1 2]\nbyte-size: 10485760\nhome: /home/user\ndefault: default-value\nplus-equal: foobar\nplus-equal-array: [foo bar /home/user]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoreflect%2Fgo_hocon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoreflect%2Fgo_hocon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoreflect%2Fgo_hocon/lists"}