Golang: Express-like framework for building APIs

I have created some basic APIs with the node.js Express framework. I am thinking of switching to Go, as the callback code becomes difficult to reason fairly quickly. I really like Express as a framework, is there something similar in Go?

+6
source share
4 answers

The Gorilla Toolkit is great. In particular, you can look at github.com/gorilla/mux. There is a wider scope, but users tend to choose a simpler option, since the language and the standard library will take you quite far, and the structure is not as necessary for managing complexity as in other languages, and can simply complicate things unnecessarily.

The docs APIs are a good reference, and you can also check out examples of how other people use it .

+3
source

It may be too late for you, but I was working on a clone of Express for Go. I affirm that it is 90% complete, since it can work for you 90%.

Source: https://github.com/ricallinson/forgery Website: http://goforgery.appspot.com/

+4
source

I found go-api useful, but there are a few more frameworks. If you are looking for a simpler package, the Gorilla Toolkit (note: this is a toolkit, not a framework, so it’s less self-confident)

GoApi: https://github.com/dpapathanasiou/go-api Gorilla: https://github.com/gorilla

+2
source

It may not be so, but check out Revel

+2
source

Source: https://habr.com/ru/post/953442/


All Articles