我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在Go中管理会话

Are there some Go libraries for sessions?

Using Python/Django there wasn't any problem.

I am new to Go and I haven't found anything about it. So, are there general sessions support for Go? Are there some frameworks with sessions support? (It seems web.go has no sessions support, doesn't it?)

Gorilla's sessions package is the one I use and I guess the best choice for most projects. Gorilla also offers a lower-level package, securecookie.

Other options include seshcookie and authcookie.

近期文章

  • 为什么以下golang程序会抛出运行时内存不足错误?
  • 如何从golang的Redis键值存储中获取列表值?
  • 对于给定的接口,我有三种实现。 三个实现如何共享同一方法?
  • Go fmt会自动缩进吗?
  • Go中的OO样式结构对象
  • Golang中的功能接口
  • Go程序中的一般恐慌恢复
  • 如何在Golang中为字符串类型创建方法
  • 有没有清除此Go代码的方法?
  • 如何在GO中初始化结构的嵌套数组?
  • 为什么我的存储实体使用默认值?
  • Golang通道在接收值之前死锁
  • Kubernetes Go API
  • 更好的错误处理
  • 在Regexp.FindAllStringSubmatch()中,第二个参数做什么?
  • 打开和读取文件的单元测试功能
  • Goroutine无法运行
  • 在Go中以不同的分数秒长度进行解析
  • Go方法集-带有接收者T的指针类型* T的调用方法
  • time.Now()和time.Now()。Local()有什么区别?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华