M
M
Maxim Kovalev2014-05-20 12:01:20
go
Maxim Kovalev, 2014-05-20 12:01:20

What is the simplest Web framework on GO?

Which one to choose the simplest Web-framework for the GO language? Interested in processing http POST / GET requests and return responses. The minimum set, but nothing more =)

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alex, 2014-05-23
@kai_zer_ru

For the standard library (net/http)

q := r.FormValue("q")
b := r.FormValue("b")

где r *http.Request.

Oh, and don't forget to add headings.
w.Header().Add("Content-Type", "text/html; charset=utf-8")
w.Header().Add("Server", "fakeserver")

Где w http.ResponseWriter.

If this is what you need, I can give you an example.

S
Sergey Lerg, 2014-05-20
@Lerg

The simplest one is in the standard library.
golang.org/pkg/net/http

J
jj_killer, 2014-05-20
@jj_killer

One: martini.codegangsta.io
Two: negroni.codegangsta.io
Three: https://goji.io/
And a thicker rails-like framework: https://revel.github.io/

D
Dmitry Demidov, 2014-05-20
@ptitca_zu

As above said standard library + good tutorial:
https://github.com/Unknwon/build-web-application-w...

M
Maxim Kovalyov, 2014-05-23
@kai_zer_ru

It is necessary that the GO daemon catches GET / POST requests to the domain on which it will hang. Requests of the form www.trololo.ru/q=2&b=4
In these frameworks, I found only processing
www.trololo.ru/q/2
Getting the value of the variable q = 2.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question