()
| 10 | } |
| 11 | |
| 12 | func (e InterpolationError) Error() string { |
| 13 | return fmt.Sprint(strings.Replace(e.Err.Error(), "\n", ", ", -1)) |
| 14 | } |
| 15 | |
| 16 | func (e InterpolationError) Translate(translate func(string, ...interface{}) string) string { |
| 17 | return translate(e.Error()) |