Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/foxcapades/lib-go-yaml

YAML utilities
https://github.com/foxcapades/lib-go-yaml

Last synced: 5 days ago
JSON representation

YAML utilities

Awesome Lists containing this project

README

        

= YAML Utils

image:https://travis-ci.org/Foxcapades/lib-go-yaml.svg?branch=master["Build Status", link="https://travis-ci.org/Foxcapades/lib-go-yaml"]
image:https://img.shields.io/github/v/tag/Foxcapades/lib-go-yaml?label=version[Latest Tag, link=https://github.com/Foxcapades/lib-go-yaml/tags]
image:https://goreportcard.com/badge/github.com/Foxcapades/lib-go-yaml[Go Report Card, link=https://goreportcard.com/report/github.com/Foxcapades/lib-go-yaml]
image:https://codecov.io/gh/Foxcapades/lib-go-yaml/branch/master/graph/badge.svg[Code Coverage, link=https://codecov.io/gh/Foxcapades/lib-go-yaml]
image:https://img.shields.io/badge/go-docs-ff69b4[GoDocs, link="https://pkg.go.dev/github.com/Foxcapades/lib-go-yaml"]

A set of utilities for constructing and dealing with YAML nodes.
Built on top of https://github.com/go-yaml/yaml/tree/v3[go-yaml v3].

[source, sh-session]
----
go get github.com/Foxcapades/lib-go-yaml
----

---

.Example
[source, go]
----
foo := map[string][]string{
"bar": {"fizz", "buzz"}
}
node, _ := xyml.ToYamlNode(foo)
_ = xyml.MapAppend(node, "hi", "bye")
----