From c0dd68766e0e5c80c1c4382b2f6ba9f0da9518f9 Mon Sep 17 00:00:00 2001 From: pedromorgan Date: Wed, 6 Dec 2017 21:30:53 +0000 Subject: [PATCH] Ditch go < 1.5 (and no external dependancies) --- .travis.yml | 3 --- README.md | 2 +- mime.go | 1 - mime_go14.go | 25 ------------------------- 4 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 mime_go14.go diff --git a/.travis.yml b/.travis.yml index 64e9339..20b1123 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,6 @@ language: go go: - - 1.2x - - 1.3x - - 1.4x - 1.5x - 1.6x - 1.7x diff --git a/README.md b/README.md index 6b549af..f4b4ad7 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ is easy to implement other methods for sending emails using a local Postfix, an API, etc. -It requires Go 1.2 or newer. With Go 1.5, no external dependencies are used. +It requires Go 1.5 or newer. ## Features diff --git a/mime.go b/mime.go index 194d4a7..3aab82d 100644 --- a/mime.go +++ b/mime.go @@ -1,4 +1,3 @@ -// +build go1.5 package gomail diff --git a/mime_go14.go b/mime_go14.go deleted file mode 100644 index 3dc26aa..0000000 --- a/mime_go14.go +++ /dev/null @@ -1,25 +0,0 @@ -// +build !go1.5 - -package gomail - -import "gopkg.in/alexcesaro/quotedprintable.v3" - -var newQPWriter = quotedprintable.NewWriter - -type mimeEncoder struct { - quotedprintable.WordEncoder -} - -var ( - bEncoding = mimeEncoder{quotedprintable.BEncoding} - qEncoding = mimeEncoder{quotedprintable.QEncoding} - lastIndexByte = func(s string, c byte) int { - for i := len(s) - 1; i >= 0; i-- { - - if s[i] == c { - return i - } - } - return -1 - } -)