Comments (6)
查看sessions文档,sessions的使用方法已经改变。 不再有NewCookieStore方法
from wblog.
运行遇到./main.go:190:11: undefined: "github.com/gin-contrib/sessions".NewCookieStore 重新安装github.com/gin-contrib/sessions还是无法解决
这块你找到解决的方法了嘛
from wblog.
查看sessions文档,sessions的使用方法已经改变。 不再有NewCookieStore方法
能否修复更新下代码
from wblog.
就不能搞成go.mod的么,那样包都好解决了。。。
from wblog.
就不能搞成go.mod的么,那样包都好解决了。。。
历史遗留问题,下一版本更换
from wblog.
update main.go
import "github.com/gin-contrib/sessions/cookie"
store := sessions.NewCookieStore([]byte(config.SessionSecret)) -> store := cookie.NewStore([]byte(config.SessionSecret))
from wblog.
Related Issues (20)
- getCurrentDirectory问题 HOT 4
- 有一个问题想咨询一下你. HOT 4
- when i run it it warining like this HOT 2
- model类包含比较多的业务查询是不是不太好 HOT 1
- govendor sync 执行报错 HOT 1
- govendor sync报错 HOT 3
- govendor sync报错 HOT 1
- 每个 view 里都有重复的 head 标签,可以用 layout 模式优化一下 HOT 1
- go run bug
- 小哥,我遇到了一个错误。我截了个图。
- 在安装 govendor的时候报错怎么解决呢?go get -u github.com/kardianos/govendor HOT 1
- go run main.go 报错 HOT 1
- cannot load github.com/qiniu/x/bytes.v7 HOT 1
- 能否使用go.mod部署呢 HOT 3
- qiniupkg.com/x/bytes.v7: module qiniupkg.com/x@latest found (v1.11.5), but does not contain package qiniupkg.com/x/bytes.v7
- 麻烦能提供下sqlite3的wblog.db文件么 HOT 3
- panic: html/template: pattern matches no files HOT 2
- govendor sync没反应 HOT 2
- govendor 拉不到库
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wblog.