- 博客(2)
- 问答 (3)
- 收藏
- 关注
转载 Golang close channel
The close built-in function closes a channel, which must be either bidirectional or send-only. It should be executed only by the sender, never the receiver, and has the effect of shutting down the channel after the last sent value is received. After the
2018-10-21 21:53:21 1478
原创 Goalng 反射
在学习Golang的反射时确实碰到了一些问题定义了一个学生结构体type Student struct { name string `json:"student_name"` age int `json:"student_age"`} 首先,在之前学习Java时,反射可以暴力获取类的私有变量和方法,但是在Golang好像不是这样的问题的首次发现是在通过反射获取方法并调用时...
2018-10-17 21:08:38 289
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人