Sort problem

Report a typo

Put the pieces of code in the correct order to make an HTTP request and read the body of the response.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                if err != nil {	log.Fatalln("can't read response") }
              
                response, err := http.Get("https://httpbin.org/get")
              
                if err != nil { log.Fatalln("can't do request") }
              
                response.Body.Close()
              
                body, err := io.ReadAll(response.Body)
              
___

Create a free account to access the full topic