Developing Web Clients

Let’s develop a HTTP web client with Go.

We'll cover the following

This lesson shows how to develop HTTP clients, starting with a simplistic version and continuing with a more advanced one. In this simplistic version, all of the work is done by the http.Get() call, which is pretty convenient when we do not want to deal with lots of options and parameters. However, this type of call gives us no flexibility over the process. Notice that http.Get() returns an http.Response value.

Coding example

All this is illustrated in simpleClient.go:

Get hands-on with 1200+ tech skills courses.