{"id":13343319,"url":"https://github.com/esakat/dig-yaml","last_synced_at":"2026-01-25T17:10:48.859Z","repository":{"id":57506140,"uuid":"232708425","full_name":"esakat/dig-yaml","owner":"esakat","description":"easy to get value of yaml with golang","archived":false,"fork":false,"pushed_at":"2020-01-09T03:36:11.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-12T22:43:03.734Z","etag":null,"topics":["golang","yaml"],"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/esakat.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-09T02:53:10.000Z","updated_at":"2020-01-09T03:36:13.000Z","dependencies_parsed_at":"2022-08-29T20:00:36.699Z","dependency_job_id":null,"html_url":"https://github.com/esakat/dig-yaml","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/esakat/dig-yaml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esakat%2Fdig-yaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esakat%2Fdig-yaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esakat%2Fdig-yaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esakat%2Fdig-yaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esakat","download_url":"https://codeload.github.com/esakat/dig-yaml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esakat%2Fdig-yaml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28755570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T16:32:25.380Z","status":"ssl_error","status_checked_at":"2026-01-25T16:32:09.189Z","response_time":113,"last_error":"SSL_read: 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":["golang","yaml"],"created_at":"2024-07-29T19:31:08.259Z","updated_at":"2026-01-25T17:10:48.844Z","avatar_url":"https://github.com/esakat.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions Status](https://github.com/esakat/dig-yaml/workflows/Go/badge.svg)](https://github.com/esakat/dig-yaml/actions)\n\n# Easy to get value of yaml\n\nIntroduction\n------------\n\nThe dig-yaml package enables to get value of yaml\n\nInstallation and usage\n----------------------\n\nTo install it, run:\n\n    go get github.com/esakat/dig-yaml\n    \nExample\n-------\n\n```Go\npackage main\n\nimport (\n    \"fmt\"\n    \"log\"\n    \"gopkg.in/yaml.v2\"\n    \"os\"\n    \"github.com/esakat/dig-yaml\"\n)\n\nfunc main() {\n    f, err := os.Open(\"testfile.yml\")\n    defer f.Close()\n    if err != nil {\n        log.Fatal(err)\n    }\n\n    dec := yaml.NewDecoder(f)\n\n    var y map[interface{}]interface{}\n    dec.Decode(\u0026y)\n    \n    // it's like y[\"hoge\"].([]interface{})[0].(map[interface{}]interface{})[\"key1\"]\n    key1, err := dig_yaml.DigYaml(y, \"hoge\", 0, \"key1\")\n    if err != nil {\n        log.Fatal(err)\n    }\n\n    // Output: test1\n    fmt.Println(key1)\n\n}\n```\n\ntestfile.yml\n\n```yaml\nfoo: hoge\nbar: false\nhoge:\n  - key1: test1\n    key2: 1\n  - key1: test2\n    key2: 2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesakat%2Fdig-yaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesakat%2Fdig-yaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesakat%2Fdig-yaml/lists"}