mirror of https://github.com/golang/go.git
Declare an unexported type and use it in OfString/UnpackString so it is impossible to fool the Label.UnpackString into accessing a non-string. Change-Id: I840fcc99590e532a78a5f9a416cd40ce9ec2163a Reviewed-on: https://go-review.googlesource.com/c/tools/+/305309 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com> |
||
|---|---|---|
| .. | ||
| core | ||
| export | ||
| keys | ||
| label | ||
| bench_test.go | ||
| doc.go | ||
| event.go | ||