From ec2588652871d36c6fb849edb83d122e92e6b3c5 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Wed, 19 Apr 2017 15:45:45 +1000 Subject: [PATCH] Removed redundant code, updated doc w.r.t reading json files --- README.md | 1 - coverage.sh | 3 ++ docs/convert/index.html | 51 +++++++++++++++++++++++------- docs/index.html | 2 +- docs/mkdocs/search_index.json | 22 ++++++------- docs/read/index.html | 3 +- docs/sitemap.xml | 10 +++--- docs/write/index.html | 3 +- json_converter.go | 34 -------------------- json_converter_test.go | 36 --------------------- mkdocs.yml | 5 +++ mkdocs/convert.md | 41 ++++++++++++++++++++++-- mkdocs/read.md | 4 ++- mkdocs/snippets/works_with_json.md | 1 + mkdocs/write.md | 3 +- yaml.go | 8 +---- 16 files changed, 114 insertions(+), 113 deletions(-) create mode 100755 coverage.sh create mode 100644 mkdocs/snippets/works_with_json.md diff --git a/README.md b/README.md index 09d9d65e..84e4fd36 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,6 @@ Available Commands: new yaml n [--script/-s script_file] a.b.c newValueForC Flags: - -J, --fromjson[=false]: input as json -h, --help[=false]: help for yaml -j, --tojson[=false]: output as json -t, --trim[=true]: trim yaml output diff --git a/coverage.sh b/coverage.sh new file mode 100755 index 00000000..8140f3bc --- /dev/null +++ b/coverage.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +go test -coverprofile=coverage.out && go tool cover -html=coverage.out \ No newline at end of file diff --git a/docs/convert/index.html b/docs/convert/index.html index be73f134..20d4de99 100644 --- a/docs/convert/index.html +++ b/docs/convert/index.html @@ -252,15 +252,15 @@