Skip to content

Commit f667834

Browse files
committed
fix point
1 parent 59359e1 commit f667834

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/json/json.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func main() {
5555
// 你可以给结构字段声明标签来自定义编码的 JSON 数据键
5656
// 名称。在上面 `Response2` 的定义可以作为这个标签
5757
// 的一个例子。
58-
res2D := Response2{
58+
res2D := &Response2{
5959
Page: 1,
6060
Fruits: []string{"apple", "peach", "pear"}}
6161
res2B, _ := json.Marshal(res2D)

0 commit comments

Comments
 (0)