zoukankan      html  css  js  c++  java
  • dotweb now released to Version 1.5

    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包

  • 相关阅读:
    ActivityLifecycleCallbacks 如何控制activity的生命周期
    ViewPage + Fragment 防止Fragment 重复加载问题
    RecyclerView 必知必会(转)
    如何简单的实现一个tab页title的动画效果
    onInterceptTouchEvent和onTouchEvent调用时序(转)
    Android Studio 2.3版本 Run项目不能自动启动APP的问题 (转)
    js-jQuery性能优化(一)
    js-权威指南学习笔记20
    js-权威指南学习笔记19.2
    js-权威指南学习笔记19
  • 原文地址:https://www.cnblogs.com/pzrr/p/9156882.html
Copyright © 2011-2022 走看看