07-fetch-url

command
v0.0.0-...-a716749 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL