Skip to content

Commit

Permalink
Merge pull request #19 from aggrolite/gofmt-examples
Browse files Browse the repository at this point in the history
Apply gofmt to example code in README.
  • Loading branch information
Sam Ghods authored Mar 27, 2017
2 parents 04f3134 + a4f8cbd commit 0ca9ea5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -95,6 +95,7 @@ import (

"github.com/ghodss/yaml"
)

func main() {
j := []byte(`{"name": "John", "age": 30}`)
y, err := yaml.JSONToYAML(j)
Expand Down

0 comments on commit 0ca9ea5

Please sign in to comment.