Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rwxrob/y2j
- Owner: rwxrob
- License: apache-2.0
- Created: 2022-03-24T07:06:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-26T02:09:34.000Z (over 2 years ago)
- Last Synced: 2024-10-26T00:08:11.374Z (about 2 months ago)
- Topics: bonzai, converter, golang, json, yaml
- Language: Go
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING
- Funding: .github/FUNDING.yml
- License: LICENSE
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 cmdsimport (
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.