golang中context包中的一些基础知识的归纳
golang中context包中的一些基础知识的归纳1.Background() 使用方法:context.Background() 返回结果:当前context的父代context2.TODO() 使用方法:context.TODO() 返回结果:当前context所包含的context上面两点需要说明的是所有的context加起来就像一颗树一样 parent / | \...
原创
2020-10-05 14:53:42 ·
463 阅读 ·
0 评论