- 博客(6)
- 资源 (4)
- 收藏
- 关注
原创 NSQ 安装指南
NSQ 安装指南假设我们的服务器安装下面要求编排。nsqlookup 集群列表192.168.234.77192.168.234.36192.168.234.39nsq 节点192.168.234.117192.168.234.118nsqadmin 节点192.168.234.119安装前准备下载最新的二进制包,命令行操作如下:tar -xvf nsq-0.3.8.linux-amd6
2017-02-23 10:15:40 3623
原创 Go如何保证gorountine执行完毕后继续执行
Go如何保证gorountine执行完毕后继续执行Gorountine和channel是go语言最核心的功能,这个功能保证了go强大的并发执行能力。如果你想在你继续执行你的goroutine之前等待所有的goroutines执行完毕,你该如何使用go语言解决这样一个问题呢?下面,我将给出三中解决方案。其中,最有解决方案是sync.WaitGroup。程序函数等待利用time包中的Sleep方法等待一
2017-02-21 12:29:52 7947
原创 TOML简介
TOML简介GitHub 目前的新项目已经转用 CoffeeScript 了。CoffeeScript 比 JavaScript 要简洁优雅得多。同样地,GitHub 也觉得 YAML 不够简洁优雅,因此捣鼓出了一个 TOML。TOML 的全称是 Tom’s Obvious, Minimal Language,因为它的作者是 GitHub 联合创始人 Tom Preston-Werner 。GitH
2017-02-19 11:27:50 18969 1
翻译 Go 1.8 正式发布
今天Go团队很高兴地宣布Go 1.8发布了。你可以从下载页面获得1.8版本。在这个版本中,整个标准库有显着的性能改进和变化。 Go 1.7中为64位x86系统引入的编译器后端现在用于所有体系结构,在这些体系结构下可以看到显着的性能改进。例如,我们的基准程序所需的CPU时间在32位ARM系统上减少了20-30%。在此版本中,对于64位x86系统也有一些性能提升。编译器和链接器跑得更快。编译时间应该比
2017-02-17 11:25:29 912
原创 Go语言 Select 详细解读
Go Select 详解select语句让多个channel操作等待Go的select语句让程序线程在多个channel的操作上等待,select语句在goroutine 和channel结合的操作中发挥着关键的作用。介绍一个小程序,演示这个select功能。这个程序模拟接受消息功能,有两个channel接受发送过来的消息。select语句用来接受两个某个消息,for循环表示仅接受3个消息。pack
2017-02-16 12:11:23 12327 3
Machine Learning With Go
2017-10-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人