From the course: Learning the Go Standard Library

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Performing HTTP GET

Performing HTTP GET - Go Tutorial

From the course: Learning the Go Standard Library

Start my 1-month free trial

Performing HTTP GET

- The Go package library provides great support for performing network operations and building connected applications. In this example, we're going to see how to perform some basic HTTP operations using Go. So to do this, we're going to use the HTTP package, and you can see I have the docs for that here in my browser. And if I scroll down a little bit, you can see that there are a variety of functions for working with HTTP and other network operations. Now, there's a lot of functions here, but a lot of these you probably won't use right away. We're just going to look at a subset of these functions. And I'm also going to be using a service called httpbin.org for testing, and this is a really great resource for testing various HTTP-based operations. So when you have a few spare moments, I highly suggest exploring this site a bit more. It has some great features that you can use when you're testing your own internet connected…

Contents