什么是go context 2024年9月11日 · 阅读需 1 分钟ahKevinXy作者context 包 context包 包含核心的API : context.WithValue: 设置键值对,并且返回一个新的context实例 context.WithCancel context.WithDeadline context.WithTimeout