From 91b776bedefc3cea4351a67f285a0693bf6dcddf Mon Sep 17 00:00:00 2001 From: Igor V Belousov Date: Sat, 20 Nov 2021 14:51:06 +0300 Subject: [PATCH] Chapter 1 - fetch.go fix --- ch1/fetch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch1/fetch.go b/ch1/fetch.go index dc547c6..dd11739 100644 --- a/ch1/fetch.go +++ b/ch1/fetch.go @@ -9,7 +9,7 @@ import ( ) func main() { - for _, url := range os.Args[:1] { + for _, url := range os.Args[1:] { resp, err := http.Get(url) if err != nil { fmt.Fprintf(os.Stderr, "fetch: %v\n", err)