package message type Welcome struct { Name string } func (e *Welcome) Subject() string { return "Welcome" } func (e *Welcome) HtmlBody() (string, error) { content := `

Welcome {{.Name}}

` return render(layout, content, e) }