Documentation ¶
Overview ¶
fetch_url fetches the given URL and prints the output
Go standard library has all the network related packages grouped under "net". So, the "net/http" package is useful to establish http connections
- http.Get(url) returns the response and error if any
- The response.Body contains the stream to read the output
Click to show internal directories.
Click to hide internal directories.