golang
文章平均质量分 53
弃更内容请谨慎查看
这个作者很懒,什么都没留下…
展开
-
go语言的goroutine调度机制
go语言的goroutine调度机制转载 2017-10-09 20:50:25 · 1955 阅读 · 0 评论 -
Mac使用tree命令
之前配置好的,最近改了profile文件丢了,特意转载左下笔记终端运行:echo "alias tree=\"find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'\"" >> ~/.bash_profile && source ~/.bash_profile转载 2017-08-11 21:03:15 · 312 阅读 · 0 评论 -
golang 的string与[]byte转换
相对于C语言,golang是类型安全的语言。但是安全的代价就是性能的妥协。 下面我们看看Golang不想让我们看到的“秘密”——string的底层数据。 通过reflect包,我们可以知道,在Golang底层,string和slice其实都是struct:type SliceHeader struct { Data uintptr Len int ...原创 2018-03-03 00:48:15 · 11634 阅读 · 0 评论