Skip to content

Commit

Permalink
go.mod: update mds to v0.13.3
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Mar 20, 2024
1 parent 401bbf9 commit ed9da9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.22.0
require (
github.com/creachadair/command v0.1.12
github.com/creachadair/flax v0.0.0-20240212192608-428acafa3bbe
github.com/creachadair/mds v0.13.2
github.com/creachadair/mds v0.13.3
github.com/klauspost/compress v1.17.7
modernc.org/sqlite v1.29.5
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ github.com/creachadair/command v0.1.12 h1:i54ZLq0demWH4ekKTzl8wZnqGOOdh2HhEMgQFS
github.com/creachadair/command v0.1.12/go.mod h1:YKwUE49nAi8qxLl8jCQ0GMPvwdxmIBkJW3LqxgZ7ljk=
github.com/creachadair/flax v0.0.0-20240212192608-428acafa3bbe h1:Za5bZ3VxQXRJqfxcHnkmgk7FfmPxT4N1TjwlKjnkvlw=
github.com/creachadair/flax v0.0.0-20240212192608-428acafa3bbe/go.mod h1:2vVCsqiB+GpV/qBKCQ0lKRrJhlKUPdI83SnaFKwJyNo=
github.com/creachadair/mds v0.13.2 h1:0y3zewnVsJfnI1+Gu8cMWu0v0g0/BiMxaqYsDGADEF8=
github.com/creachadair/mds v0.13.2/go.mod h1:4vrFYUzTXMJpMBU+OA292I6IUxKWCCfZkgXg+/kBZMo=
github.com/creachadair/mds v0.13.3 h1:OqXNRorXKsuvfjor+0ixtrpA4IINApH8zgm23XLlngk=
github.com/creachadair/mds v0.13.3/go.mod h1:4vrFYUzTXMJpMBU+OA292I6IUxKWCCfZkgXg+/kBZMo=
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
Expand Down
5 changes: 3 additions & 2 deletions textcrime.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"strings"

"github.com/creachadair/mds/mdiff"
"github.com/creachadair/mds/mstr"
"github.com/creachadair/mds/slice"
)

Expand Down Expand Up @@ -66,7 +67,7 @@ func diffSchema(ar, br []schemaRow) string {

// indentLines writes the lines of text to w, each indented with indent.
func indentLines(w io.Writer, indent, text string) {
for _, line := range mdiff.Lines(text) {
for _, line := range mstr.Lines(text) {
fmt.Fprintln(w, indent, line)
}
}
Expand All @@ -93,7 +94,7 @@ func diffColumns(w io.Writer, dc []slice.Edit[schemaCol], lhs, rhs []schemaCol)
// cleanLines returns the lines of s "cleaned" by removing leading and trailing
// whitespace from them.
func cleanLines(s string) []string {
lines := mdiff.Lines(s)
lines := mstr.Lines(s)
for i, s := range lines {
lines[i] = strings.TrimSpace(s)
}
Expand Down

0 comments on commit ed9da9d

Please sign in to comment.