Answer the question
In order to leave comments, you need to log in
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
For the standard library (net/http)
q := r.FormValue("q")
b := r.FormValue("b")
где r *http.Request.
w.Header().Add("Content-Type", "text/html; charset=utf-8")
w.Header().Add("Server", "fakeserver")
Где w http.ResponseWriter.
One: martini.codegangsta.io
Two: negroni.codegangsta.io
Three: https://goji.io/
And a thicker rails-like framework: https://revel.github.io/
As above said standard library + good tutorial:
https://github.com/Unknwon/build-web-application-w...
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 questionAsk a Question
731 491 924 answers to any question