()
| 157 | } |
| 158 | |
| 159 | func ExampleMessage_AddAlternativeWriter() { |
| 160 | t := template.Must(template.New("example").Parse("Hello {{.}}!")) |
| 161 | m.AddAlternativeWriter("text/plain", func(w io.Writer) error { |
| 162 | return t.Execute(w, "Bob") |
| 163 | }) |
| 164 | } |
| 165 | |
| 166 | func ExampleMessage_Attach() { |
| 167 | m.Attach("/tmp/image.jpg") |
nothing calls this directly
no test coverage detected
searching dependent graphs…