Skip to content

Commit abebdba

Browse files
author
Itachish
committed
修改单词拼写错误
1 parent 70c8a55 commit abebdba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2.6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ Go语言实现了反射,所谓反射就是动态运行时的状态。我们一
363363

364364
转化为reflect对象之后我们就可以进行一些操作了,也就是将reflect对象转化成相应的值,例如
365365

366-
tag := t.Elem().Field(0).Tag //获取定义在strcut里面的标签
366+
tag := t.Elem().Field(0).Tag //获取定义在struct里面的标签
367367
name := v.Elem().Field(0).String() //获取存储在第一个字段里面的值
368368

369369
获取反射值能返回相应的类型和数值

0 commit comments

Comments
 (0)