go-sample-webpage/vendor/gopkg.in/mail.v2/mime_go14.go
kekskurse 2d39757d71
Some checks failed
continuous-integration/drone/push Build is failing
Refactory and mail
2021-11-22 23:11:37 +01:00

25 lines
443 B
Go

// +build !go1.5
package mail
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
}
)