Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: 商讯在线 <[email protected]>
  • Loading branch information
admpub committed Aug 24, 2014
1 parent ed3f9c1 commit 6b3acd5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ func main(){
}
}
```

注意事项
=======
不要在同一个包内定义相同名称的结构体。
由于是按照“包名称+结构体名称”来缓存Tag,第二个结构体如果跟第一个结构体同名,
那么它们只会被当做同一个结构体来获取Tag,从而导致第二个具有相同名称的结构体获取Tag不正确。

0 comments on commit 6b3acd5

Please sign in to comment.