Golang 要点汇总

Golang有很多非常强大的用法,本文对网上的一些文章做一个简单的汇总,供以后翻阅。

 

1,Constant的用法

https://splice.com/blog/iota-elegant-constants-golang/  这篇文章详细介绍了如何优雅地定义constant

 

2,Channel

非阻塞Channel操作:https://gobyexample.com/non-blocking-channel-operations

超时Channel:http://blog.golang.org/go-concurrency-patterns-timing-out-and

 

3,Functions

函数也是第一公民:http://jordanorelli.com/post/42369331748/function-types-in-go-golang

 

4,Go做性能评测

http://blog.golang.org/profiling-go-programs

 

5,Go Performance Tales

http://jmoiron.net/blog/go-performance-tales/

 

6,Go Channels

https://docs.google.com/document/d/1yIAYmbvL3JxOKOjuCyon7JhW4cSv1wy5hC0ApeGMV9s/pub

 

7,Go中调用C的开销问题

https://groups.google.com/forum/#!msg/golang-nuts/RTtMsgZi88Q/To5F9wWnpU8J

 

8,Go1.4开启GC报告:

GODEBUG=gctrace=1 /path/to/program 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值