Skip to content

Instantly share code, notes, and snippets.

@mkabischev
Created May 27, 2020 12:18
Show Gist options
  • Save mkabischev/e722dbe12ccbff872a1a732d456ccb5c to your computer and use it in GitHub Desktop.
Save mkabischev/e722dbe12ccbff872a1a732d456ccb5c to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
)
func Download(urls []string) (downloaded, failed []string) {
return
}
func main() {
// download images and print results
urls := []string{
"https://static.vinepair.com/wp-content/uploads/2019/10/HopTake-Oct17-Header.jpg",
"https://static.turbosquid.com/Preview/001209/767/QP/3D-model-beer-pack-corona_Z.jpg",
"https://static.turosquid.com/Preview/001209/767/QP/3D-model-beer-pack-corona_Z.jpg",
}
downloaded, failed := Download(urls)
fmt.Printf("Downloaded: %v\n Failed: %v", downloaded, failed)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment