Frameworks Golang

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.

6 Likes

LearnServerProgramming on Go wiki

RESTful JSON API in Go

6 Likes

I was working with https://gin-gonic.github.io/gin/

3 Likes

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!

1 Like

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

3 Likes

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

2 Likes


a very short and comprehensive example.

1 Like

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 recommend you Iris - http://iris-go.com.

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.)

1 Like

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.

2 Likes

Honestly I’ve gone a very long way (30k line enterprise app) with just gorilla mux. Everything else was taken from the standard library.

1 Like

@kdrazkiewicz https://www.reddit.com/r/golang/comments/57w79c/why_you_really_should_stop_using_iris/

Take a look at Go Swagger. Amazing project: https://github.com/go-swagger/go-swagger

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.