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)