Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/foxcapades/lib-go-yaml
- Owner: Foxcapades
- License: mit
- Created: 2020-05-23T17:57:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T18:03:07.000Z (over 4 years ago)
- Last Synced: 2024-10-17T01:18:55.995Z (20 days ago)
- Language: Go
- Size: 55.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.adoc
- License: license
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")
----