From a58d1eb4e49b120e3fd6f6693577c9007d2e693e Mon Sep 17 00:00:00 2001 From: Michael Wilding Date: Mon, 11 Jun 2018 10:48:44 -0700 Subject: [PATCH] library changed syntax slightly, breaking build. Changed to update --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index ffff00a..b6915df 100644 --- a/main.go +++ b/main.go @@ -11,6 +11,7 @@ import ( log "github.com/Sirupsen/logrus" haikunator "github.com/atrox/haikunatorgo" "github.com/gin-contrib/sessions" + "github.com/gin-contrib/sessions/cookie" "github.com/gin-gonic/gin" cache "github.com/hashicorp/golang-lru" "github.com/msoedov/hacker-slides/auth" @@ -27,7 +28,7 @@ func NewApp() *gin.Engine { r := gin.Default() - store := sessions.NewCookieStore([]byte("secret")) + store := cookie.NewStore([]byte("secret")) arc, err := cache.NewARC(10) if err != nil { log.Fatalf("Failied to allocate cache %#v", err)