-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kevin Schoonover <me@kschoon.me>
- Loading branch information
1 parent
80c0235
commit 4d08b89
Showing
4 changed files
with
66 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package internal | ||
|
||
// ContextKey is just an empty struct. It exists so TranscationContext can be | ||
// an immutable public variable with a unique type. It's immutable | ||
// because nobody else can create a ContextKey, being unexported. | ||
type ContextKey struct{} | ||
|
||
// TranscationContext is the context key to use with golang.org/x/net/context's | ||
// WithValue function to associate an EvaluationContext value with a context. | ||
var TranscationContextKey ContextKey |