Skip to content

rwxrob/y2j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌳 Go YAML to JSON Converter

GoDoc

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

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.