Skip to content

Commit 0ca9ea5

Browse files
author
Sam Ghods
authored
Merge pull request #19 from aggrolite/gofmt-examples
Apply gofmt to example code in README.
2 parents 04f3134 + a4f8cbd commit 0ca9ea5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ import (
5353
)
5454

5555
type Person struct {
56-
Name string `json:"name"` // Affects YAML field names too.
57-
Age int `json:"age"`
56+
Name string `json:"name"` // Affects YAML field names too.
57+
Age int `json:"age"`
5858
}
5959

6060
func main() {
@@ -95,6 +95,7 @@ import (
9595

9696
"github.com/ghodss/yaml"
9797
)
98+
9899
func main() {
99100
j := []byte(`{"name": "John", "age": 30}`)
100101
y, err := yaml.JSONToYAML(j)

0 commit comments

Comments
 (0)