MCPcopy Create free account
hub / github.com/labstack/gommon / writeText

Method writeText

email/email.go:74–81  ·  view source on GitHub ↗
(content string, contentType string)

Source from the content-addressed store, hash-verified

72}
73
74func (m *Message) writeText(content string, contentType string) {
75 m.writeBoundary()
76 m.writeHeader("Content-Type", contentType+"; charset=UTF-8")
77 m.buffer.WriteString("\r\n")
78 m.buffer.WriteString(content)
79 m.buffer.WriteString("\r\n")
80 m.buffer.WriteString("\r\n")
81}
82
83func (m *Message) writeFile(f *File, disposition string) {
84 m.writeBoundary()

Callers 1

SendMethod · 0.80

Calls 2

writeBoundaryMethod · 0.95
writeHeaderMethod · 0.95

Tested by

no test coverage detected