fix: golint: context.WithValue should should not use basic type as key (#83)

* fix: golint: context.WithValue should should not use basic type as key

* optimiz
master
mlboy 4 years ago committed by GitHub
parent 57299a7597
commit 029fd3ea35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,3 +1,7 @@
package tracespec
const TracingKey = "X-Trace"
//ContextKey a type for context key
type ContextKey struct{}
//TracingKey is tracing key for ctx
var TracingKey ContextKey

Loading…
Cancel
Save