package textutil
import "github.com/rogpeppe/testscript/internal/textutil"
package textutil contains text processing utilities.
This package came to life as a result of refactoring code common to internal packages we have factored out of the Go repo.
Index ¶
Functions ¶
func Diff ¶
Diff returns a formatted diff of the two texts, showing the entire text and the minimum line-level additions and removals to turn text1 into text2. (That is, lines only in text1 appear with a leading -, and lines only in text2 appear with a leading +.)
Source Files ¶
- Version
- v1.1.0 (latest)
- Published
- Sep 30, 2019
- Platform
- darwin/amd64
- Imports
- 2 packages
- Last checked
- 3 hours ago –
Tools for package owners.