mime.go 317 B

12345678910111213141516171819202122
  1. // +build go1.5
  2. package gomail
  3. import (
  4. "mime"
  5. "mime/quotedprintable"
  6. "strings"
  7. )
  8. var newQPWriter = quotedprintable.NewWriter
  9. type mimeEncoder struct {
  10. mime.WordEncoder
  11. }
  12. var (
  13. bEncoding = mimeEncoder{mime.BEncoding}
  14. qEncoding = mimeEncoder{mime.QEncoding}
  15. lastIndexByte = strings.LastIndexByte
  16. )