chan

Posted by 夏泽民

``` func main(){ a:=1 b:=2 fmt.Println(a+b) c:=make(chan struct{}) go func (){ for { _,ok:=<-c if ok{ fmt.Println(“ok”) }else{ fmt.Println(“not ok”) } } }()



ceph

Posted by 夏泽民

https://docs.ceph.com/en/latest/glossary/#term-Ceph-Object-Gateway



for range 的性能

Posted by 夏泽民

Go 语言中,range 可以用来很方便地遍历数组(array)、切片(slice)、字典(map)和信道(chan)



map 源码分析

Posted by 夏泽民

map实现的两个关键数据结构



pprof diff_base

Posted by 夏泽民

go run github.com/google/pprof -http localhost:8080 -diff_base A.pb.gz B.pb.gz



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at 465474307@qq.com

Subscribe to our mailing list

* indicates required