Beego 0.9.0 release, Go application framework

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

Beauty http://www.hongyanliren.com

After half a month of efforts, Beego has improved a lot of things, this time the main changes are as follows:



1, Beego official website on-line, there are more rich documents for everyone to get started: http://beego.me


2. More Intelligent routing function, support Autorouter


Beego. Autorouter (&controllers. objectcontroller{})
/object/login calling the login method in Objectcontroller
/object/logout calling the Logout method in Objectcontroller
3, the struct directly map the output form, and then you can read the data directly from the form, and then directly into the database, more information please refer to Http://beego.me/docs/Views_Templates


4, the new ORM system has come out, we can use ORM for a variety of database operations, and most powerful is, ORM Support Association query, without writing complex join SQL, ORM help you do all this:





Type Post struct {
Id int ' orm: ' Auto '
Title string ' orm: ' Size (100) '
User *user ' orm: ' rel (FK) '}




5, support Xsrf,beego has built-in XSRF defense mechanism, to use this mechanism, you need to add ENABLEXSRF settings in the application configuration file. For more information, please refer to Http://beego.me/docs/Controllers_XSRF


6, Serverjson support for encoding in Chinese, users can customize whether to encode


7. Httplib module makes it very convenient for users to request rest-like applications


8, support flash data, convenient for users one-time data use, detailed use please refer to Http://beego.me/docs/Controllers_Session


Bugfix:


1. User Cannot set Gomaxprocs
2. Add this in the controller. Destroysession ()
3, controller's finish when there is output is not executed, some users use finish to release resources, do not execute will lead to resource leaks, it must be performed
4, the cache module because the Memcahe engine modified the return parameters resulting in incorrect data returned
5, Serverjson and serverxml all support gzip output content
6. Rules for routing


Beego Details: Please click here
Beego's Download Address: please click here
Want to access open source China via mobile client: please click here
This site is reproduced in addition to the article, are the original site or compiled
Welcome any form of reprint, but please be sure to indicate the source, respect for others labor to create an open source community
Reprint Please specify: The article reprinted from: Open Source Chinese community [http://www.oschina.net]
This article is entitled: Beego 0.9.0 release, Go application framework

This address: http://www.oschina.net/news/43212/beego-0-9-0


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.