Merge pull request #43 from umamiMike/master
library changed syntax slightly, breaking build. Changed to update
This commit is contained in:
commit
aa5d3db132
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -11,6 +11,7 @@ import (
|
||||||
log "github.com/Sirupsen/logrus"
|
log "github.com/Sirupsen/logrus"
|
||||||
haikunator "github.com/atrox/haikunatorgo"
|
haikunator "github.com/atrox/haikunatorgo"
|
||||||
"github.com/gin-contrib/sessions"
|
"github.com/gin-contrib/sessions"
|
||||||
|
"github.com/gin-contrib/sessions/cookie"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
cache "github.com/hashicorp/golang-lru"
|
cache "github.com/hashicorp/golang-lru"
|
||||||
"github.com/msoedov/hacker-slides/auth"
|
"github.com/msoedov/hacker-slides/auth"
|
||||||
|
@ -27,7 +28,7 @@ func NewApp() *gin.Engine {
|
||||||
|
|
||||||
r := gin.Default()
|
r := gin.Default()
|
||||||
|
|
||||||
store := sessions.NewCookieStore([]byte("secret"))
|
store := cookie.NewStore([]byte("secret"))
|
||||||
arc, err := cache.NewARC(10)
|
arc, err := cache.NewARC(10)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Failied to allocate cache %#v", err)
|
log.Fatalf("Failied to allocate cache %#v", err)
|
||||||
|
|
Loading…
Reference in a new issue