Home > other >  Golang several big framework the advantages and the difference?
Golang several big framework the advantages and the difference?

Time:10-04

Martini, Beego, Revel, etc...

Golang - China discussion group of answer:

Su Pei:

Try the Martini, now feeling some of the third-party plug-in quantity and quality is not very good, there will be some pit, or want to write some middleware,
Overall than the other two mature framework,

Last year I began to study the language, unconsciously almost one year, I used to study the PHP and nodejs, are weakly typed interpreted language, want to find a compilation of a strongly typed language and continue to learn, just check the novel Go language, I only focus on Web applications, saw a lot of interested in open source Go Web framework, a casual banter,

Fan Yang:

Just beginning with Beego, that is, it is the Chinese do, there is a problem may be directly asked what the author is also convenient,


Framework of contrast, from [Go language Web framework] (http://fuxiaohei.me/article/20/go-web-framework.html)

Last year I began to study the language, unconsciously almost one year, I used to study the PHP and nodejs, are weakly typed interpreted language, want to find a compilation of a strongly typed language and continue to learn, just check the novel Go language, I only focus on Web applications, saw a lot of interested in open source Go Web framework, a casual banter,

# # # # revel
Revel is the earliest Go language Web framework, the framework of Java and scala language play a lot of ideas, the first I see play 1 x period in the Java community seems to bring a new atmosphere, the feeling is very interesting things, then play 2 x for scala camp, the Java developers into the abyss, relentless ridicule of others, now play the community or the tepid, domestic application is also small,

Revel it and play with the same trouble, abandoned the original standard to completely, revel completely ignore Go a set of the standard library, all is his own concept; Similar play abandoned the servlet 3 standards, as a result, I see along while, still don't know how to use, take too much, the concept of a barrier!

Revel in case there is, of course, such as slope, the author of his blog also has a lot of tutorials about revel,

# # # # beego
Beego is the hottest domestic framework, through the original give his contribution some code comments, reading through the source code, according to my idea, it is a medium-sized framework, in addition to basic MVC structure, also with the Cache, the ORM, Session, and other library support, trying to be like this, is a good thing for developers,

Ing but the question is, can use other people's Session or Cache? Have been using xorm the ORM libraries instead of beego own ORM case, but there will always be an illusion: "it offers in its own right, else wrong will not make one thousand", ha ha ha,

Beego with lots of people, documents are complete (don't update in time), community and Q group is also very active, therefore, choose beego is good,

# # # # martini
Martini is a new framework, concept is very good, however, martini is only a tiny framework, with simple core, routing and dependency injection container inject, so a lot of things need to write their own, such as the view, session and so on, and there is no see better combined with database using example, learn a little bit difficult,

Change a perspective, martini builds the framework is not a lot, but an ecological martini - contrib components, this is nodejs expressjs in doing, but he DI, let third-party libraries middleware is easy to transform for martini specification, if the component is multiplied, believe there will be a great future,

However, due to the realization of the dependency injection depend on reflect the reflection, and the language reflects the efficiency of library is very poor, too much will certainly slow down the speed of the whole middleware, this can only see the Go after the development of luo,

Make a summary # # # #
Are the three main frame, there are also a lot of good play, such as similar Java struct xweb, similar to python flask of entropy and ASP.NET MVC goku, much to see, must be good.

But, more importantly, familiar with the standard library!!!!!!!!!!!!!!!

CodePudding user response:

Beego is modular development, each module can be used independently, can also be replaced,

CodePudding user response:

Have just said a few big framework of the three,,,, iris? Gin?

CodePudding user response:

May 14 years haven't they? Or not popular?

CodePudding user response:

Ha ha, add beego:
TLS Settings to configure encryption package order, and set up the way is very low,

CodePudding user response:

Martini is no longer maintained

CodePudding user response:

Do with golang web than do the underlying logic layer,

CodePudding user response:

Native go on write interface, discard the session and template engine module front end to vuejs pretty darn cool

CodePudding user response:

With beego five months now, and then found that we simply just use the orm,,,

CodePudding user response:

Gin gin installation: [centos6 installation go framework of steps, and in the middle of pit] (http://www.fancyecommerce.com/2017/12/28/centos6-%E5%AE%89%E8%A3%85go%E6%A1%86%E6%9E%B6gin%E7%9A%84%E6%AD%A5%E9%AA%A4%EF%BC%8C%E4%BB%A5%E5%8F%8A%E4%B8%AD%E9%97%B4%E9%81%87%E5%88%B0%E7%9A%84%E5%9D%91/)

CodePudding user response:

Gin? I'm surprised it was a few years ago

CodePudding user response:

Don't like beego bloated, also don't like to use the framework

CodePudding user response:

The framework is too old

CodePudding user response:

With two years of Gin, other modules lu all by themselves, their promotion soon

CodePudding user response:

Gin and echo didn't

CodePudding user response:

Don't framework passed by

CodePudding user response:

Echo gin gf iris? [six popular go web more] (HTTP://https://studyiris.com/detail? Id=51 & amp; Uid=1)

CodePudding user response:

"Github.com/labstack/echo
""Github.com/labstack/echo/middleware
""Github.com/pangpanglabs/goutils/echomiddleware
""Github.com/go-sql-driver/mysql
""Github.com/go-xorm/xorm
"Why I couldn't see, these are not important? We all these useful project basic framework,

CodePudding user response:

Can add the word Web? Much framework

CodePudding user response:

Don't framework passed by

CodePudding user response:

iris

CodePudding user response:

https://gfer.me
` ` GF (Go Frame) is a modular, loosely coupled, lightweight, high performance of the language application development framework, supporting a warm restart, hot update, domain name, port, more services, HTTP/HTTPS, dynamic routing features, and provides a series of Web service development core components, such as: the Router, cookies, Session, service registry, configuration management, template engines, data validation, paging management, database ORM, etc, etc., and provides dozens of practical development module sets, such as: cache, log, time, and the command line, binary, file locks, object pool, connection pool, data coding, process management, process communication, TCP/UDP components, concurrent security container, Goroutine pool and so on and so on,

CodePudding user response:

Good old posts

CodePudding user response:

Gin is better

CodePudding user response:

With iris passing by.
Golang language not too shame threadlocal features.

CodePudding user response:

Just want to say: https://goframe.org

CodePudding user response:

Golang do fit,
  • Related