Skip to content

Commit 244e43b

Browse files
committed
add ctxKey type for session key
1 parent 6b53bf9 commit 244e43b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

orm/orm.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import (
77
"github.com/godzie44/d3/orm/schema"
88
)
99

10-
const sessionKey = "d3_session"
10+
type ctxKey string
11+
12+
const sessionKey ctxKey = "d3_session"
1113

1214
// Orm - d3 orm instance.
1315
type Orm struct {

0 commit comments

Comments
 (0)