From 406fcd640e59f096c1c835921194020b61f72d9e Mon Sep 17 00:00:00 2001 From: mrz1836 Date: Tue, 3 Mar 2020 10:47:53 -0500 Subject: [PATCH] Fixed comments to follow go standards --- README.md | 2 +- examples/examples.go | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 876e92a..232f1c3 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ You can view the generated [documentation here](https://godoc.org/github.com/mrz - [SMTP](https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol) ## Examples & Tests -All unit tests and [examples](examples/examples.go) run via [Travis CI](https://travis-ci.com/mrz1836/go-mail) and uses [Go version 1.13.x](https://golang.org/doc/go1.13). View the [deployment configuration file](.travis.yml). +All unit tests and [examples](examples/examples.go) run via [Travis CI](https://travis-ci.com/mrz1836/go-mail) and uses [Go version 1.14.x](https://golang.org/doc/go1.14). View the [deployment configuration file](.travis.yml). Run all tests (including integration tests) ```bash diff --git a/examples/examples.go b/examples/examples.go index 1bad440..eb85fee 100644 --- a/examples/examples.go +++ b/examples/examples.go @@ -8,7 +8,7 @@ import ( "os" "strconv" - "github.com/mrz1836/go-mail" + gomail "github.com/mrz1836/go-mail" ) func main() { @@ -58,23 +58,23 @@ func fullExample() { mail := new(gomail.MailService) mail.FromName = "No Reply" mail.FromUsername = "no-reply" - mail.FromDomain = os.Getenv("EMAIL_FROM_DOMAIN") //example.com + mail.FromDomain = os.Getenv("EMAIL_FROM_DOMAIN") // example.com // Mandrill - mail.MandrillAPIKey = os.Getenv("EMAIL_MANDRILL_KEY") //aOfw3WU... + mail.MandrillAPIKey = os.Getenv("EMAIL_MANDRILL_KEY") // aOfw3WU... // AWS SES - mail.AwsSesAccessID = os.Getenv("EMAIL_AWS_SES_ACCESS_ID") //AKIAY... - mail.AwsSesSecretKey = os.Getenv("EMAIL_AWS_SES_SECRET_KEY") //tOpw3WU... + mail.AwsSesAccessID = os.Getenv("EMAIL_AWS_SES_ACCESS_ID") // AKIAY... + mail.AwsSesSecretKey = os.Getenv("EMAIL_AWS_SES_SECRET_KEY") // tOpw3WU... // Postmark - mail.PostmarkServerToken = os.Getenv("EMAIL_POSTMARK_SERVER_TOKEN") //AKIAY... + mail.PostmarkServerToken = os.Getenv("EMAIL_POSTMARK_SERVER_TOKEN") // AKIAY... // SMTP - mail.SMTPHost = os.Getenv("EMAIL_SMTP_HOST") //example.com - mail.SMTPPort, _ = strconv.Atoi(os.Getenv("EMAIL_SMTP_PORT")) //25 - mail.SMTPUsername = os.Getenv("EMAIL_SMTP_USERNAME") //johndoe - mail.SMTPPassword = os.Getenv("EMAIL_SMTP_PASSWORD") //secretPassword + mail.SMTPHost = os.Getenv("EMAIL_SMTP_HOST") // example.com + mail.SMTPPort, _ = strconv.Atoi(os.Getenv("EMAIL_SMTP_PORT")) // 25 + mail.SMTPUsername = os.Getenv("EMAIL_SMTP_USERNAME") // johndoe + mail.SMTPPassword = os.Getenv("EMAIL_SMTP_PASSWORD") // secretPassword provider := gomail.SMTP // AwsSes Mandrill Postmark