command
module
Version:
v0.0.0-...-41dff35
Opens a new window with list of versions in this module.
Published: Jan 8, 2017
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.