Goimports explained

Posted by 夏泽民

https://nikodoko.com/posts/goimports_explained/ Go users out there are probably familiar with gofmt and it’s brother goimports (which actually uses gofmt under the hood). These are two little CLI tools (written in Go, of course), that have become core parts of many developers’ Go workflow.



writing a SQL database from scratch in Go

Posted by 夏泽民

https://notes.eatonphil.com/database-basics.html https://notes.eatonphil.com/database-basics-expressions-and-where.html



craw

Posted by 夏泽民

提到爬虫,总会联想到Python。似乎Python是爬虫的唯一选择。爬虫只是完成一个访问页面然后收集数据的任务,用任何语言来写都能实现。相比较Python快速实现但是庞大的体型,Golang来写爬虫似乎是更好的又一选择。 https://github.com/zhshch2002/goribot https://imagician.net/archives/92/ HTTP请求 Golang语言的HTTP请求库不需要使用第三方的库,标准库就内置了足够好的支持:



close_wait

Posted by 夏泽民

1 背景 线上有一个高并发的 HTTP Go 服务部署在 A 区域,能够正常提供服务。我们有天将 B 区域的流量也准备切到这个服务的时候,发生了一个很诡异的事情。从 A 区域来的流量全部 200,但是从 B 区域来的流量全部都 502、504。



Libcsp

Posted by 夏泽民

Libcsp 是一个高性能 C 语言并发库,受 CSP 模型影响而成。Libcsp 的速度比 Golang 快 10 倍。



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