惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
Y
Y Combinator Blog
博客园_首页
V
Visual Studio Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志
Hugging Face - Blog
Hugging Face - Blog
宝玉的分享
宝玉的分享
B
Blog
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
WordPress大学
WordPress大学
L
LangChain Blog
爱范儿
爱范儿
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
Blog — PlanetScale
Blog — PlanetScale
C
Check Point Blog
博客园 - 聂微东
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Help Net Security

博客园 - 基点项目师

dotweb框架之旅 [四] - 常用对象-HttpContext dotweb框架之旅 [三] - 常用对象-HttpServer dotweb框架之旅 [二] - 常用对象-App(dotweb) dotweb框架之旅 [一] - HelloWorld 对 dotweb 框架进行统一的自定义错误处理 go服务端----使用dotweb框架搭建简易服务 对Golang有兴趣的朋友,推荐一款go语言Web框架-dotweb Nginx日志文件切割 linux安装PHP-memcache-redis扩展 微信公众平台开发 - 页面自适应 linux 安装 mongodb linux 安装 node.js nginx支持php配置 Linux 安装 php linux 安装nginx 如何设计自适应网页 ThinkDev.Data更新日志 ThinkDev.Logging-Queue模块介绍 Windows准备Node.js运行与开发环境
dotweb now released to Version 1.5
基点项目师 · 2018-06-08 · via 博客园 - 基点项目师

dotweb released to Version 1.5!!
https://github.com/devfeel/dotweb

What's new?

重要:go版本适配升级为1.9+

New features:
* New feature:UploadFile.RandomFileName used to get random file name from uuid
* New feature: encodes.base64x used to quickly use base64 EncodeString and DecodeString
* New feature: session.NewRedisConfig use to create redis session config include serverUrl and storeKeyPre
* if you set custom storeKeyPre, it will be store key start with custom set, default is "dotweb:session:"
* New feature: framewrok.RedisClient add Ping(), to check redis is alived
* New feature: DevelopmentMode:default UseLog,default use RequestLogMiddleware,default Console Print
* New feature: 状态页:访问/dotweb/state时增加CurrentTime字段输出
* New feature: GetSessionStore add Redis Ping check,if not alived, it will be panic error
* New feature: add dotweb.ClassicWithConf(config *config.Config),support Start server with custom config
* New feature:完善RedisClient接口能力

Bug fixed:
* fixed: for #114 dotweb: fix error found by vet
* fixed: for #122 - dotweb没有打出 access log
* fixed: 修正Reponse自动释放时未重置body字段,导致内存溢出BUG
* fixed: for #112 自定义处理异常的时候设置返回数据的content-type 但是没有生效

调整:
* 合并const目录内容至consts文件,统一const定义文件
* 移除example/static
* 新增example/developmode,便于对developmode的理解
* 调整: dotweb.Classic移除自动UseRequestLog逻辑
* 调整:Session Redis模式时,新增sessionReExpire用于重置有效期,避免调用SessionUpdate导致不必要的redis数据交换
* 调整:Cache.Runtime调整map为sync.Map
* 调整:Session Redis模式时,gob.EncodeMap逻辑调整,移除自动注册interface{}
* 调整:UploadFile.Size实现方法,直接返回Header.Size数据
* 调整:dotweb.Classic签名为Classic(logPath string),若传入logPath为空,则默认以"bin-root/logs"为日志目录
* 调整:默认Log目录由"bin-root"为"bin-root/logs"
* 调整:CharsetUTF8值为"charset=utf-8"
* 调整:内置Vendor目录仅保留 golang.org/x/net包,移除redis与yaml包