go/internal/event
Jonathan Amsterdam 2c039f7ffc internal/event/label: prevent unsafe get of non-string
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>
2021-03-29 12:54:38 +00:00
..
core internal/lsp: fix some incorrect spelling 2020-11-24 11:59:21 +00:00
export all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
keys internal/event: remove the event.eventType type 2020-04-27 15:30:19 +00:00
label internal/event/label: prevent unsafe get of non-string 2021-03-29 12:54:38 +00:00
bench_test.go all: add copyright notices to files that are missing them 2021-01-06 17:23:47 +00:00
doc.go internal/telemetry: renaming to internal/event 2020-04-23 17:20:48 +00:00
event.go internal/event: remove the event.eventType type 2020-04-27 15:30:19 +00:00