Explore >> Select a destination


You are here

alexandrugris.github.io
| | hjr265.me
3.6 parsecs away

Travel
| | I know many will start with something like Gin whenever they are working on a JSON/HTTP-based backend in Go. I, not entirely sure if the minority, try to stick to Go's built-in net/http package and, at most, use Gorilla Mux in most of my Go projects. And so serving something simple like JSON is no different from the package's point of view as any other content type: whatever it is, write it out to the w, the http.
| | lewisdale.dev
3.0 parsecs away

Travel
| | Now it's time to actually try and send a "ping" to a website
| | bartlomiejmika.com
2.8 parsecs away

Travel
| | The purpose of this post is to learn how our basic API server can read the body of a request. In addition, we will learn how to use an easy-to-use simple database for beginners called scribble.
| | lanie.dev
10.4 parsecs away

Travel
| So you want to parse a form. You have your handler, and you're getting data passed in through the request. 1 2 3 4 5 package example func Login(w http.ResponseWriter, r *http.Request) { // hi (: } The next step is to parse the form on the request. 1 2 3 4 5 6 func Login(w http.ResponseWriter, r *http.Request) { var err error if err := r.