{"id":15934712,"url":"https://github.com/6543/xyaml","last_synced_at":"2026-05-14T21:02:24.020Z","repository":{"id":158415600,"uuid":"633947026","full_name":"6543/xyaml","owner":"6543","description":"Mirror of eXtend YAML","archived":false,"fork":false,"pushed_at":"2023-05-03T19:22:44.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-29T08:05:01.941Z","etag":null,"topics":["golang","golang-library","lib","library","mirror","yaml","yaml-parser"],"latest_commit_sha":null,"homepage":"https://codeberg.org/6543/xyaml","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/6543.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-28T16:41:32.000Z","updated_at":"2023-04-28T16:44:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b0c534a-8b2f-40c2-930d-a8e56e062983","html_url":"https://github.com/6543/xyaml","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6543%2Fxyaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6543%2Fxyaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6543%2Fxyaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6543%2Fxyaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/6543","download_url":"https://codeload.github.com/6543/xyaml/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247024152,"owners_count":20870940,"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":["golang","golang-library","lib","library","mirror","yaml","yaml-parser"],"created_at":"2024-10-07T03:20:45.541Z","updated_at":"2026-05-14T21:02:18.979Z","avatar_url":"https://github.com/6543.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eXtend YAML\n\n[![Tests](https://ci.codeberg.org/api/badges/6543/xyaml/status.svg)](https://ci.codeberg.org/6543/xyaml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![GoDoc](https://godoc.org/codeberg.org/6543/xyaml?status.svg)](https://godoc.org/codeberg.org/6543/xyaml)\n[![Go Report Card](https://goreportcard.com/badge/codeberg.org/6543/xyaml)](https://goreportcard.com/report/codeberg.org/6543/xyaml)\n\n\u003ca href=\"https://codeberg.org/6543/xyaml\"\u003e\n    \u003cimg alt=\"Get it on Codeberg\" src=\"https://codeberg.org/Codeberg/GetItOnCodeberg/media/branch/main/get-it-on-neon-blue.png\" height=\"60\"\u003e\n\u003c/a\u003e\n\nis a library to extend [`gopkg.in/yaml.v3`](https://github.com/go-yaml/yaml/tree/v3)\nto allow merging [sequences](https://github.com/yaml/yaml/issues/48)\n\n## Features\n\n- [x] merge sequences\n  - [x] single alias\n  - [x] array of alias\n\n## How to use\n\n`go get codeberg.org/6543/xyaml`\n\nand just replace your\n\n```go\nerr := yaml.Unmarshal(in, out)\n```\n\nwith\n\n```go\nerr := xyaml.Unmarshal(in, out)\n```\n\n## Examples\n\n### merge sequences\n\n```yml\narray1: \u0026my_array_alias\n- foo\n- bar\n\narray2:\n- \u003c\u003c: *my_array_alias\n- NEW1\n- \u003c\u003c: [*my_array_alias, *my_array_alias]\n```\n\nwill be interpreted as:\n\n```yml\narray1:\n- foo\n- bar\n\narray2:\n- foo\n- bar\n- NEW1\n- foo\n- bar\n- foo\n- bar\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F6543%2Fxyaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F6543%2Fxyaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F6543%2Fxyaml/lists"}