1
0
mirror of https://github.com/golang/go synced 2024-11-26 03:27:58 -07:00
go/src/context
Matt T. Proud 7f87b82955 context: link to context and structs blog post
This commit amends the package documentation for the context package
and links the https://go.dev/blog/context-and-structs where the package
documentation dissuades one against embedding a context into a struct.
This is to help close the gap in understanding why this otherwise
cryptic piece of guidance is provided. The other referenced blog
article now points to go.dev instead of golang.org.

Change-Id: I0844a57bde1c03b6dddd1dd2dab2d20557d791fb
GitHub-Last-Rev: 4b039fba90
GitHub-Pull-Request: golang/go#69696
Reviewed-on: https://go-review.googlesource.com/c/go/+/616515
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-09-30 18:47:31 +00:00
..
afterfunc_test.go context: avoid key collisions in test afterfunc map 2023-09-18 16:58:52 +00:00
benchmark_test.go
context_test.go context: add AfterFunc 2023-04-19 19:13:01 +00:00
context.go context: link to context and structs blog post 2024-09-30 18:47:31 +00:00
example_test.go context: fix synchronization in ExampleAfterFunc_cond 2023-08-21 20:24:28 +00:00
net_test.go
x_test.go context: handle nil values for valueCtx.String() 2024-07-10 02:44:20 +00:00