苹果测试工程师的日常
19:52 · 2024年9月26日 · 周四
https://vishnubharathi.codes/blog/context-with-value-pitfall/
Vishnu Bharathi
How not to use context.WithValue in Go
While working on my recent Go project, I had a use-case where I wanted to pass a struct between two Go packages and I used context.WithValue to do it. In retrospect while reading the Go docs for it, I
Home
Powered by
BroadcastChannel
&
Sepia