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 

posted @ 2015-03-17 00:13  CobbLiu  阅读(617)  评论(0编辑  收藏  举报