๐Ÿ“กHTTP Client WorkshopWORKSHOP
1
2
3
4

Step 1

Create an `http.Client` with a 5-second timeout. Start a test server with `httptest.NewServer` that returns `"hello"`. Make a GET request to `srv.URL`, read the body with `io.ReadAll`, and print it. Always `defer resp.Body.Close()`.

โŒ˜ Enter (Mac) ยท Ctrl+Enter (Win/Linux)