Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rwxrob/y2j

🌳 Go YAML to JSON Converter
https://github.com/rwxrob/y2j

bonzai converter golang json yaml

Last synced: 10 days ago
JSON representation

🌳 Go YAML to JSON Converter

Awesome Lists containing this project

README

        

# 🌳 Go YAML to JSON Converter

[![GoDoc](https://godoc.org/github.com/rwxrob/y2j?status.svg)](https://godoc.org/github.com/rwxrob/y2j)

## Install

This command can be installed as a standalone program or composed into
a Bonzai command tree.

Standalone

```
go install github.com/rwxrob/y2j/cmd/y2j@latest
```

Composed

```go
package cmds

import (
Z "github.com/rwxrob/bonzai/z"
"github.com/rwxrob/y2j"
)

var Cmd = &Z.Cmd{
Name: `cmds`,
Commands: []*Z.Cmd{help.Cmd, y2j.Cmd},
}
```

## Embedded Documentation

All documentation (like manual pages) has been embedded into the source
code of the application. See the source or run the program with help to
access it.

## Design Considerations

* **Nothing but maps.**

It is extremely rare to encounter a YAML array in the wild. It is
common, however, to have a map with a single array as it's value.