From 201c9ab124e4452fe2e68c0bc82565bc9ef2b703 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 18 Oct 2022 20:12:23 +0200 Subject: [PATCH] go fmt --- client_test.go | 5 +++-- parse.go | 4 +++- smtp.go | 16 ++++++++-------- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/client_test.go b/client_test.go index a391c06..4fbe2cd 100644 --- a/client_test.go +++ b/client_test.go @@ -742,8 +742,9 @@ func sendMail(hostPort string) error { } // localhostCert is a PEM-encoded TLS cert generated from src/crypto/tls: -// go run generate_cert.go --rsa-bits 1024 --host 127.0.0.1,::1,example.com \ -// --ca --start-date "Jan 1 00:00:00 1970" --duration=1000000h +// +// go run generate_cert.go --rsa-bits 1024 --host 127.0.0.1,::1,example.com \ +// --ca --start-date "Jan 1 00:00:00 1970" --duration=1000000h var localhostCert = []byte(` -----BEGIN CERTIFICATE----- MIICFDCCAX2gAwIBAgIRAK0xjnaPuNDSreeXb+z+0u4wDQYJKoZIhvcNAQELBQAw diff --git a/parse.go b/parse.go index df73786..dc7e77f 100644 --- a/parse.go +++ b/parse.go @@ -37,7 +37,9 @@ func parseCmd(line string) (cmd string, arg string, err error) { // Takes the arguments proceeding a command and files them // into a map[string]string after uppercasing each key. Sample arg // string: -// " BODY=8BITMIME SIZE=1024 SMTPUTF8" +// +// " BODY=8BITMIME SIZE=1024 SMTPUTF8" +// // The leading space is mandatory. func parseArgs(args []string) (map[string]string, error) { argMap := map[string]string{} diff --git a/smtp.go b/smtp.go index 65aba8e..36963cb 100644 --- a/smtp.go +++ b/smtp.go @@ -2,14 +2,14 @@ // // It also implements the following extensions: // -// 8BITMIME: RFC 1652 -// AUTH: RFC 2554 -// STARTTLS: RFC 3207 -// ENHANCEDSTATUSCODES: RFC 2034 -// SMTPUTF8: RFC 6531 -// REQUIRETLS: RFC 8689 -// CHUNKING: RFC 3030 -// BINARYMIME: RFC 3030 +// 8BITMIME: RFC 1652 +// AUTH: RFC 2554 +// STARTTLS: RFC 3207 +// ENHANCEDSTATUSCODES: RFC 2034 +// SMTPUTF8: RFC 6531 +// REQUIRETLS: RFC 8689 +// CHUNKING: RFC 3030 +// BINARYMIME: RFC 3030 // // LMTP (RFC 2033) is also supported. //