(data map[string]string)
| 120 | } |
| 121 | |
| 122 | func (t templateR) render(data map[string]string) (interface{}, error) { |
| 123 | buf := &bytes.Buffer{} |
| 124 | err := t.Execute(buf, data) |
| 125 | if err != nil { |
| 126 | return nil, errors.WithStack(err) |
| 127 | } |
| 128 | return buf.String(), nil |
| 129 | } |
| 130 | |
| 131 | type native interface{} |
| 132 |