Echo
High performance, minimalist Go web framework (by labstack)
Iris
The fastest HTTP/2 Go Web Framework. New, modern and easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio :rocket: (by kataras)
Our great sponsors
Echo | Iris | |
---|---|---|
114 | 13 | |
25,774 | 23,998 | |
1.1% | - | |
9.0 | 7.8 | |
4 days ago | 3 days ago | |
Go | Go | |
MIT License | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Echo
Posts with mentions or reviews of Echo.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-02.
-
[OpenSource] I am building high performance Plex alternative in Go for Movies and TV Show
Can I try to rewrite it using the following? I'll just hand you the code I don't care about credit, I just enjoy cleaning things up. - https://github.com/spf13/cobra - https://echo.labstack.com/ - SQLite - and not a bunch of if statements
-
Could I get a code review?
Use a library for HTTP serving, such as Gin, Chi, or Echo. I personally use Chi, as it's just the right level of abstraction for how I like to work. Despite what others say here, don't try to re-implement everything in a modern serving library using the standard library.
-
It's so easy to learn
Here I'm not really sure what you're referring to: * You can set request timeout and it has nothing to do with whether you handled your error or not. * In most cases you either bubble it up the callstack or do something with error in place you o received it i.e. you switch to default value, retry or sth along those lines. In some cases frameworks like echo will translate error into 5XX response for you if you don't do anything with it in top level handler. * Panics are recoverable. Also in case your handler panics it won't crash entire server -> stdlib HTTP server just closes connection, frameworks might even provide panic handler which will return 5XX instead of nothing. * try/catch doesn't really solve anything I mentioned here ¯_(ツ)_/¯. You just hope somebody caught your exception somewhere else.
- What is the ASP.NET Core Web API equivalent in Go?
-
How to build an API using Go
Now that we have set up the Go environment, we can start building our API. The first step is to choose a framework. There are several popular frameworks for building APIs in Go, such as Gorilla mux, Echo, and Gin. For this article, we'll use Gorilla mux.
-
what's your recommended router? chi, mux, something else?
echo! It's really easy it to use for simple routes but you can as well define routing groups as I did here.
-
go-mir - a toolkit to develop RESTful API backend service like develop service of gRPC
Mir is a toolkit to develop RESTful API backend service like develop service of gRPC. It adapt some HTTP framework sush as Gin, Chi, Hertz, Echo, Iris, Fiber, Macaron, Mux, httprouter。
-
I've just started learning Golang, and I'm struggling to choose a framework.
I use Echo at my job, we have migrated from GoKit and is pretty good. https://echo.labstack.com
-
Tools besides Go for a newbie
IDE: use whatever make you productive. I personally use vscode. VCS: git, as golang communities use github heavily as base for many libraries. AFAIK Linter: use staticcheck for linting as it looks like mostly used linting tool in go, supported by many also. In Vscode it will be recommended once you install go plugin. Libraries/Framework: actually the standard libraries already included many things you need, decent enough for your day-to-day development cycles(e.g. `net/http`). But here are things for extra: - Struct fields validator: validator - Http server lib: chi router , httprouter , fasthttp (for non standard http implementations, but fast) - Web Framework: echo , gin , fiber , beego , etc - Http client lib: most already covered by stdlib(net/http), so you rarely need extra lib for this, but if you really need some are: resty - CLI: cobra - Config: godotenv , viper - DB Drivers: sqlx , postgre , sqlite , mysql - nosql: redis , mongodb , elasticsearch - ORM: gorm , entgo , sqlc(codegen) - JS Transpiler: gopherjs - GUI: fyne - grpc: grpc - logging: zerolog - test: testify , gomock , dockertest - and many others you can find here
-
Echo VS Don - a user suggested alternative
2 projects | 15 Mar 2023
Iris
Posts with mentions or reviews of Iris.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-31.
-
go-mir - a toolkit to develop RESTful API backend service like develop service of gRPC
Mir is a toolkit to develop RESTful API backend service like develop service of gRPC. It adapt some HTTP framework sush as Gin, Chi, Hertz, Echo, Iris, Fiber, Macaron, Mux, httprouter。
-
Iris VS Don - a user suggested alternative
2 projects | 15 Mar 2023
-
A bit about Go Programing language
Iris
-
Chi , gin , mux , fiber or standard library ?
Check Iris (https://github.com/kataras/iris) before you decide.
- Does Go have a widely used framework, or it's used without anything?
-
Most Popular GoLang Frameworks
Website: https://www.iris-go.com
- How to handle Permissions/roles with Golang web?
-
Best Golang Web Framework for Larg Projects
Iris
-
What's the fastest template parser in Go?
Ace
As always, my benchmark code is available for everyone but I will not tire you anymore by showing the code for each of them in the article, instead you can navigate here.
What are some alternatives?
When comparing Echo and Iris you can also consider the following projects:
Gin - Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
Fiber - ⚡️ Express inspired web framework written in Go
mux - A powerful HTTP router and URL matcher for building Go web servers with 🦍
chi - lightweight, idiomatic and composable router for building Go HTTP services
Beego - beego is an open-source, high-performance web framework for the Go programming language.
go-kit - A standard library for microservices.
httprouter - A high performance HTTP request router that scales well
Revel - A high productivity, full-stack web framework for the Go language.