Hi every one, what is the better framework to create service web with REST??
The language itself with net/http
. Go was designed for this.
Go was designed for this.
For what? For net/http
package? Sounds… uhm, strange, doesn’t it?
Rafael asked about REST web services which is server software and Go was designed to write server software.
I do not think you really need a web framework.
I have written a book to teach how to write webapps with net/http
. I have also built a cli client based on the REST server.
Do let me know your thoughts on my book!
oh thank you, I’ll take a look
Hi,
You can try Gorilla rest framework http://www.gorillatoolkit.org/, I am working on this found very useful.
Thanks
Swaroop
In addition to Gorilla, you might want to consider Chi:
It’s lightweight and works well with the new context package introduced in Go 1.7
a very short and comprehensive example.
I’m using this one: https://github.com/tideland/gorest (Tideland is my own label). Currently it is the base for a JWT authorized REST API to an application with microservices.
I think the point is that Go has net/http
included, which is a great starting point for building Web servers and Web services without the need for frameworks or third-party libraries.
(On the other hand, third-party libraries help avoiding to reinvent the wheel.)
I recommend you Iris - http://iris-go.com3.
Caveat emptor: The Iris project (or rather, the author of Iris) has gotten some bad press. (<-- Three separate links.)
EDIT:
I never used Iris, nor did I have any contact to the author. I am just forwarding what I came across. Use good judgement.
Honestly I’ve gone a very long way (30k line enterprise app) with just gorilla mux. Everything else was taken from the standard library.
@kdrazkiewicz https://www.reddit.com/r/golang/comments/57w79c/why_you_really_should_stop_using_iris/
First application I created with beego. Second only without framework. Now I am working on new large application and I am using echo - https://echo.labstack.com/
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.