WithDiffUnified is a function that generate diffs with lines of context instead of the usual three.
(val int)
| 19 | |
| 20 | // WithDiffUnified is a function that generate diffs with <n> lines of context instead of the usual three. |
| 21 | func WithDiffUnified(val int) Option { |
| 22 | return optionFunc(func(c *config) { |
| 23 | c.diffUnified = val |
| 24 | }) |
| 25 | } |
| 26 | |
| 27 | // WithExcludeList returns an Option that sets the excludeList field of a config object to the given value. |
| 28 | func WithExcludeList(val []string) Option { |
no test coverage detected