...

Source file src/github.com/go-mail/mail/mime_go14.go

Documentation: github.com/go-mail/mail

     1  // +build !go1.5
     2  
     3  package mail
     4  
     5  import "gopkg.in/alexcesaro/quotedprintable.v3"
     6  
     7  var newQPWriter = quotedprintable.NewWriter
     8  
     9  type mimeEncoder struct {
    10  	quotedprintable.WordEncoder
    11  }
    12  
    13  var (
    14  	bEncoding     = mimeEncoder{quotedprintable.BEncoding}
    15  	qEncoding     = mimeEncoder{quotedprintable.QEncoding}
    16  	lastIndexByte = func(s string, c byte) int {
    17  		for i := len(s) - 1; i >= 0; i-- {
    18  
    19  			if s[i] == c {
    20  				return i
    21  			}
    22  		}
    23  		return -1
    24  	}
    25  )
    26  

View as plain text