Skip to content

Commit

Permalink
Apply gofmt to example code in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
aggrolite committed Mar 17, 2017
1 parent 04f3134 commit a4f8cbd
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 a4f8cbd

Please sign in to comment.