mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-09 15:17:29 +02:00
code fmt change.
This commit is contained in:
parent
00fc3afcd7
commit
d7671942a6
10 changed files with 54 additions and 52 deletions
|
@ -10,9 +10,7 @@ import (
|
|||
|
||||
type key int
|
||||
|
||||
const (
|
||||
keySessionCtx key = iota
|
||||
)
|
||||
const keySessionCtx key = iota
|
||||
|
||||
func SetSession(r *http.Request, session types.Session) *http.Request {
|
||||
ctx := context.WithValue(r.Context(), keySessionCtx, session)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue