![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Go基础
sscout
这个作者很懒,什么都没留下…
展开
-
Goalng 反射
在学习Golang的反射时确实碰到了一些问题 定义了一个学生结构体 type Student struct { name string `json:"student_name"` age int `json:"student_age"` } 首先,在之前学习Java时,反射可以暴力获取类的私有变量和方法,但是在Golang好像不是这样的 问题的首次发现是在通过反射获取方法并调用时...原创 2018-10-17 21:08:38 · 279 阅读 · 0 评论 -
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 · 1463 阅读 · 0 评论