From a4f8cbd2fd05654d25f651b7e26d612ce3c98cc7 Mon Sep 17 00:00:00 2001 From: Curtis Brandt Date: Thu, 16 Mar 2017 20:39:29 -0700 Subject: [PATCH] Apply gofmt to example code in README. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fff09b6..0200f75 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,8 @@ import ( ) type Person struct { - Name string `json:"name"` // Affects YAML field names too. - Age int `json:"age"` + Name string `json:"name"` // Affects YAML field names too. + Age int `json:"age"` } func main() { @@ -95,6 +95,7 @@ import ( "github.com/ghodss/yaml" ) + func main() { j := []byte(`{"name": "John", "age": 30}`) y, err := yaml.JSONToYAML(j)