lib-go-yaml

command module
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 2 Imported by: 0

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")
----

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL