]> Cypherpunks repositories - gostls13.git/commit
context: document that WithValue's key must be comparable
authorBrad Fitzpatrick <bradfitz@golang.org>
Sun, 10 Apr 2016 15:45:34 +0000 (15:45 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 11 Apr 2016 01:52:10 +0000 (01:52 +0000)
commitbd7249766617fda12d112c3ad3ae2857ff97c71e
tree101e2ed0b9214c76ccfc3991f0ebf2b5c15a3c1e
parente6a8daceb0b0df77f5d2ca34a73561375bb89c63
context: document that WithValue's key must be comparable

Also, check it and explode earlier, rather than cryptic failures later.

Change-Id: I319a425f60e2bc9d005a187fbdbd153faa96411c
Reviewed-on: https://go-review.googlesource.com/21799
Reviewed-by: Andrew Gerrand <adg@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
src/context/context.go
src/context/context_test.go
src/go/build/deps_test.go