NewUnifiedEncoder returns a new UnifiedEncoder that writes to w.
(w io.Writer, contextLines int)
| 48 | |
| 49 | // NewUnifiedEncoder returns a new UnifiedEncoder that writes to w. |
| 50 | func NewUnifiedEncoder(w io.Writer, contextLines int) *UnifiedEncoder { |
| 51 | return &UnifiedEncoder{ |
| 52 | Writer: w, |
| 53 | srcPrefix: "a/", |
| 54 | dstPrefix: "b/", |
| 55 | contextLines: contextLines, |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | // SetColor sets e's color configuration and returns e. |
| 60 | func (e *UnifiedEncoder) SetColor(colorConfig ColorConfig) *UnifiedEncoder { |
no outgoing calls