From dd32c05f218400e93be926742209c3218b80588f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 29 Mar 2024 11:46:16 +0100 Subject: [PATCH] Rename SendMail PLAIN auth example To make go vet happy: ./example_test.go:60:1: ExampleSendMail_PlainAuth refers to unknown field or method: SendMail.PlainAuth --- example_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example_test.go b/example_test.go index f59e962..bf82415 100644 --- a/example_test.go +++ b/example_test.go @@ -57,7 +57,7 @@ var ( recipients = []string{"foo@example.com"} ) -func ExampleSendMail_PlainAuth() { +func ExampleSendMail_plainAuth() { // hostname is used by PlainAuth to validate the TLS certificate. hostname := "mail.example.com" auth := sasl.NewPlainClient("", "user@example.com", "password")