textutil

package
v0.6.9-alpha.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2023 License: Apache-2.0, BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(text1, text2 string) string

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 +.)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL