beego 1.6.0
New features:
-
logsupports rotating files likexx.2013-01-01.2.log#1265 -
context.responsesupports Flush, Hijack, CloseNotify - ORM supports Distinct #1276
-
map_gettemplate method #1305 - ORM supports tidb engine #1366
- httplib request supports []string #1308
- ORM
querySeteraddedGroupBymethod #1345 - Session’s MySQL engine supports custom table name #1348
- Performance of log’s file engine improved 30%; Supports set log file’s permission #1560
- Get session by query #1507
- Cache module supports multiple Cache objects.
- validation supports custom validation functions
bugfix:
-
bindmethod incontextcaused crash when parameter is empty. #1245 - manytomany in ORM reverse error #671
- http: multiple response.WriteHeader calls #1329
- ParseForm uses local timezone while parsing date #1343
- Emails sent by log’s SMTP engine can’t be authorised
- Fixed some issues in router:
/topic/:id/?:auth,/topic/:id/?:auth:int#1349 - Fixed the crash caused by nil while parsing comment documentation. #1367
- Can’t read
index.htmlin static folder -
dbBase.Updatedoesn’t return err if failed #1384 -
Requiredinvalidationonly works for int but not for int64 - orm: Fix handling of rel(fk) to model with string pk #1379
- graceful error while both http and https enabled #1414
- If ListenTCP4 enabled and httpaddr is empty, it still listens TCP6
- migration doesn’t support postgres #1434
- Default values of ORM text, bool will cause error while creating tables.
- graceful panic: negative WaitGroup counter
Improvement:
- Moved example to samples
- Passed golint
- Rewrote router, improved performance by 3 times.
- Used
sync.Poolforcontextto improve performance - Improved template compiling speed. #1298
- Improved config
- Refactored whole codebase for readability and maintainability
- Moved all init code into
AddAPPStartHook - Removed
middleware. Will only useplugins - Refactored
Errorhandling.