Goroutine的创建与销毁

Posted by 夏泽民

https://www.jianshu.com/p/181dc7845bb8



benchmark

Posted by 夏泽民

Sometimes you have to solve a problem that comes in several flavours. Usually complicated problems do not offer a single solution, but there are several solutions that are optimal or terrible depending on which subset of that problem the program will have to solve at runtime.



gomod

Posted by 夏泽民

go mod 后,安装默认都只会进入第一个 GOPATH go env -w GOPROXY=https://goproxy.cn,direct export GOPROXY=https://goproxy.cn,direct 再次查看GOPATH 发现多了pkg文件夹,查看该文件夹,此时pkg/mod就是缓存的依赖。 $ls pkg/ darwin_amd64 mod sumdb



GraphQL

Posted by 夏泽民

GraphQL背景 REST API的使用方式是,server定义一系列的接口,client调用自己需要的接口,获取目标数据进行整合。REST API开发中遇到的问题:



json

Posted by 夏泽民

JSON(JavaScript 对象表示,JavaScript Object Notation)作为一种轻量级的数据交换格式1,在今天几乎占据了绝大多数的市场份额。虽然与更紧凑的数据交换格式相比,它的序列化和反序列化性能不足,但是它也提供了良好的可读性与易用性,在不追求机制性能的情况下,JSON 是一种非常好的选择。



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