Downloading a file from the Internet using Go is remarkably easy. Especially coupled with concurrency it makes downloading multiple files fast. The following code below shows how to download a single file using Go. Goal: Download a test image file, the Google logohttps://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png First get the file using http.GetExtract the filename from the URL by [...]
Tag: go
Send Email With Go and MailJet
The following steps show how to send mail with Go using the standard smtp package. To test I used MailJet as the mail server but you can also use Mandrill or SendGrid. First let's setup MailJet as the mail server. Then write the Go code and send a test email. MailJet Setup After creating your [...]