摘要: 我们知道,在 golang 中的 context 是一个非常重要的包,保存了代码活动的上下文。我们经常使用 WithValue() 这个方法,来往 context 中 传递一些 key value 数据。 如果我们想拿到 context 中所有的 key and value 或者在不知道 key 的 阅读全文
posted @ 2021-01-23 20:12 r1chard 阅读(5495) 评论(3) 推荐(0)