Created
May 15, 2020 16:23
-
-
Save mkabischev/452af6b05f7027e96cd20c0d8327cb82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
func Download(urls []string) (downloaded, failed []string) { | |
return nil, nil | |
} | |
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