yaml2json

command module
v0.0.0-...-41dff35 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2017 License: MIT Imports: 7 Imported by: 0

README

Description

yaml2json

This clone uses a pinned version of go-yaml library to support non-standard >>: yaml construct.

Feature

  • zero config.
  • zero install.
  • support windows,linux,Mac os,freebsd,netbsd,openbsd,plan9 platform

Usage

build
go get github.com/sklevenz/yaml2json # get sources and install binary to GOPATH
glide install                        # install vendor directory
go build                             # build executable
shell
  • find the build of you platform
  • run echo "a: 1" | yaml2json to see result
read from file save to file
cat 1.yml | yaml2json > 2.json

Notice

  • if you do not know your mashine is 386 or amd64,you can use 386...
  • master branch may rewrite history to save space.
  • source branch save the history of source code.

Reference

https://github.com/peter-edge/go-yaml2json

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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