Skip to content

Commit e411023

Browse files
committed
updated as per Contributings.md instructions
1 parent 9367a11 commit e411023

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

examples/json/json.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"encoding/json"
99
"fmt"
1010
"os"
11+
"strings"
1112
)
1213

1314
// We'll use these two structs to demonstrate encoding and
@@ -124,7 +125,7 @@ func main() {
124125

125126
// We can also decode JSON directly from `os.Reader`
126127
dec := json.NewDecoder(strings.NewReader(str))
127-
res1 = response2{}
128+
res1 := response2{}
128129
dec.Decode(&res1)
129130
fmt.Println(res1)
130131
fmt.Println(res1.Fruits[1])

examples/json/json.hash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
35295476f817fe575619b6168273a29eddd7f545
2-
JOQpRGJWAxR
1+
75a5664321dafe10fa623c187b90f079c5319a3c
2+
jR7IEUPQF8T

public/json

Lines changed: 20 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)