I have built some basic APIs with the node.js Express framework. I'm thinking of switching to Go, since callback code gets hard to reason about pretty quickly. I really like Express as a framework, is there something similar in Go?
ExpressJS is one of the most popular HTTP server libraries for Node. js, which by default isn't as friendly for API development. Using Express, we simplify API development by abstracting away the boilerplate needed to set up a server, which makes development faster, more readable and simpler.
js, or simply Express, is a back end web application framework for Node. js, released as free and open-source software under the MIT License. It is designed for building web applications and APIs.
The Gorilla Toolkit is great. In particular, you might want to look at github.com/gorilla/mux. Larger frameworks exist, but go users tend to opt for the simpler option, because the language and standard library get you quite far and a framework isn't as necessary to manage the complexity as it is in other languages and may just complicate things unnecessarily.
The API docs are a good reference and you can also check out examples of how other people use it.
This maybe too late for you but I've been working on a clone of Express for Go. I claim it to be 90% complete so as long as it's the right 90% it could work for you.
Source: https://github.com/ricallinson/forgery Site: http://goforgery.appspot.com/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With