Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/uso.go Secret

Created March 17, 2021 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/f9a7f9142ee0ba8ce57ddc866fb8f7d4 to your computer and use it in GitHub Desktop.
Save parzibyte/f9a7f9142ee0ba8ce57ddc866fb8f7d4 to your computer and use it in GitHub Desktop.
func main() {
fmt.Println("Descargando...")
nombre, err := descargarArchivoDeInternet("https://github.com/parzibyte.png")
if err == nil {
fmt.Printf("Se descargó como %s", nombre)
} else {
fmt.Printf("Error: %v", err)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment