diff --git a/urlfetch/main.go b/urlfetch/main.go index f3377ef..a14fb4f 100644 --- a/urlfetch/main.go +++ b/urlfetch/main.go @@ -15,12 +15,12 @@ func main() { for _, url := range urls { resp, err := http.Get(url) if err != nil { - log.Fatal("fetch:", err) + log.Panic("fetch:", err) } defer resp.Body.Close() body, err := io.ReadAll(resp.Body) if err != nil { - log.Fatal("fetch:", err) + log.Panic("fetch:", err) } fmt.Println(string(body)) }