{"id":16092350,"url":"https://github.com/alecthomas/kong-yaml","last_synced_at":"2025-06-12T02:44:54.175Z","repository":{"id":44995596,"uuid":"148259609","full_name":"alecthomas/kong-yaml","owner":"alecthomas","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-14T23:50:04.000Z","size":20,"stargazers_count":13,"open_issues_count":5,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-02T00:28:07.812Z","etag":null,"topics":[],"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/alecthomas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["alecthomas"]}},"created_at":"2018-09-11T04:20:37.000Z","updated_at":"2024-05-04T06:28:48.563Z","dependencies_parsed_at":"2023-12-02T08:23:16.893Z","dependency_job_id":"efbd91ac-a3b7-4642-963b-e3765c549af9","html_url":"https://github.com/alecthomas/kong-yaml","commit_stats":{"total_commits":16,"total_committers":5,"mean_commits":3.2,"dds":0.5,"last_synced_commit":"d2f99d25765f2eab40acfcfb2af2bcdbae935003"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecthomas%2Fkong-yaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecthomas%2Fkong-yaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecthomas%2Fkong-yaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecthomas%2Fkong-yaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alecthomas","download_url":"https://codeload.github.com/alecthomas/kong-yaml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871911,"owners_count":20361380,"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":[],"created_at":"2024-10-09T16:07:16.833Z","updated_at":"2025-03-17T17:30:59.822Z","avatar_url":"https://github.com/alecthomas.png","language":"Go","funding_links":["https://github.com/sponsors/alecthomas"],"categories":[],"sub_categories":[],"readme":"# Kong YAML utilities [![](https://godoc.org/github.com/alecthomas/kong-yaml?status.svg)](http://godoc.org/github.com/alecthomas/kong-yaml) [![CircleCI](https://img.shields.io/circleci/project/github/alecthomas/kong-yaml.svg)](https://circleci.com/gh/alecthomas/kong-yaml)\n\n## Configuration loader\n\nUse it like so:\n\n```go\nparser, err := kong.New(\u0026cli, kong.Configuration(kongyaml.Loader, \"/etc/myapp/config.yaml\", \"~/.myapp.yaml\"))\n```\n\n## YAMLFileMapper\n\nYAMLFileMapper implements kong.MapperValue to decode a YAML file into\na struct field.\n\nUse it like so:\n\n```go\nvar cli struct {\n  Profile Profile `type:\"yamlfile\"`\n}\n\nfunc main() {\n  kong.Parse(\u0026cli, kong.NamedMapper(\"yamlfile\", kongyaml.YAMLFileMapper))\n}\n``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecthomas%2Fkong-yaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falecthomas%2Fkong-yaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecthomas%2Fkong-yaml/lists"}