The Go Programming Language

package mainimport (  "fmt"  "io/ioutil"  "net/http"  "os")func main() {  for _, url := range os.Args[1:] {  resp, err := http.Get(url)  if err != nil {    fmt.Fprintf(os.Stderr, "fetch: %v\n", err)    os.Exit(1)  }  b, err := ioutil.ReadAll(resp.Body)  resp.Body.Close()  if err != nil {    fmt.Fprintf(os.Stderr, "fetch: reading %s: %v\n", url, err)    os.Exit(1)  }  fmt.Fprintf("%s", b)  }}




Love podcasts or audiobooks? Learn on the go with our new app.

Hunting for a first job as a developer

Bineroo 1.3: One Day, One Grid

Flutter Method Channels on Linux

Memory Isolation Violation in Deserialization Code — Certora Bug Disclosure

7 Terminal Commands That Will Just Make You Smile

Tuples in Python

Directus 9 CMS + Gridsome

First Step to Tune gRPC in Java

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


More from Medium

Learning Go in 3 minutes

Go Context for a layman

Golang installation in Ubuntu

Reading Configuration Files in Go