Solution: warning: should not use basic type string as key in context.WithValue (golint)

Problem
warning: should not use basic type string as key in context.WithValue (golint)

Which was incredibly annoying, so the solution is, you must add “// nolint” at the end of the line
Like so:

ctx = context.WithValue(ctx, TransIDKey, “transactionID”) // nolint

And that ignores that pesky, and irritating warning.

Thanks it, folks