context

Go Context

Jankeyfu

Context 也称为上下文,主要用于并发中对多个 goroutine 的控制,也可作为全局数据进行传递的载体,按照golang 的编程实践,一般用作函数的第一个参数。