dotweb released to Version 1.5!!
https://github.com/devfeel/dotwebgit
What's new?github
重要:go版本適配升級爲1.9+golang
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接口能力web
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 可是沒有生效redis
調整:
* 合併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包session