package textutil
import "github.com/rogpeppe/go-internal/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.8.0
- Published
- Mar 12, 2021
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 45 minutes ago –
Tools for package owners.