You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: http.go
    path of file: ./repos/golang-examples/beginner
    
    the code of the file until where you have to start completion: package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
	"os"
)

func main() {
	response, err := http.Get("http://golang.org/") // Send a HTTP GET request to the URL
	if err != nil {
		f
    
func main() {
	response, err := http.Get("http://golang.org/") // Send a HTTP GET request to the URL
	if err != nil {
		fmt.Printf("%s", err) // If there is an error, print it and exit
		os.Exit(1)
	} else {
		defer response.Body.Close()                    // Close the connection to prevent a resource leak
		contents, err := ioutil.ReadAll(response.Body) // Read the contents of the HTTP GET
		if err != nil {                                // If there is an error
			fmt.Printf("%s", err)
			os.Exit(1)
		}
		fmt.Printf("%s\n", string(contents)) // Print the contents of the request
	}
}