Debian Codegraph @

writer.go

raw
1 package mailyak
2
3 import "bytes"
4
5 // BodyPart is a buffer holding the contents of an email MIME part.
6 type BodyPart struct{ bytes.Buffer }
7
8 // Set accepts a string s as the contents of a BodyPart, replacing any existing
9 // data.
10 func (w *BodyPart) Set(s string) {
11 w.Reset()
12 w.WriteString(s)
13 }