mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-25 01:13:40 +01:00
22 lines
315 B
Go
22 lines
315 B
Go
// +build go1.5
|
|
|
|
package mail
|
|
|
|
import (
|
|
"mime"
|
|
"mime/quotedprintable"
|
|
"strings"
|
|
)
|
|
|
|
var newQPWriter = quotedprintable.NewWriter
|
|
|
|
type mimeEncoder struct {
|
|
mime.WordEncoder
|
|
}
|
|
|
|
var (
|
|
bEncoding = mimeEncoder{mime.BEncoding}
|
|
qEncoding = mimeEncoder{mime.QEncoding}
|
|
lastIndexByte = strings.LastIndexByte
|
|
)
|