File tree 3 files changed +4
-7
lines changed
3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,13 @@ import (
20
20
21
21
" github.com/gin-gonic/gin"
22
22
" github.com/go-session/gin-session"
23
- " gopkg.in/ session.v2 "
23
+ " github.com/go- session/session "
24
24
)
25
25
26
26
func main () {
27
27
app := gin.Default ()
28
28
29
- app.Use (ginsession.New (
30
- session.SetCookieName (" session_id" ),
31
- session.SetSign ([]byte (" sign" )),
32
- ))
29
+ app.Use (ginsession.New ())
33
30
34
31
app.GET (" /" , func (ctx *gin.Context ) {
35
32
store := ginsession.FromContext (ctx)
Original file line number Diff line number Diff line change 5
5
"sync"
6
6
7
7
"github.com/gin-gonic/gin"
8
- "gopkg.in/ session.v2 "
8
+ "github.com/go- session/session "
9
9
)
10
10
11
11
type (
Original file line number Diff line number Diff line change 8
8
"testing"
9
9
10
10
"github.com/gin-gonic/gin"
11
- "gopkg.in/ session.v2 "
11
+ "github.com/go- session/session "
12
12
)
13
13
14
14
func TestSession (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments