Skip to content

Commit

Permalink
Use custom type for context key
Browse files Browse the repository at this point in the history
  • Loading branch information
workanator committed May 9, 2021
1 parent 2565ea3 commit 724b841
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions context_impl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ func TestNewContext(t *testing.T) {
}

func TestFlowContext_Ctx(t *testing.T) {
type customKeyType int

const (
key = 1
value = "VALUE"
key customKeyType = 1
value = "VALUE"
)

ctx := NewContext()
Expand Down

0 comments on commit 724b841

Please sign in to comment.