We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9624aa4 commit 28ce7abCopy full SHA for 28ce7ab
docs.go
@@ -7,6 +7,7 @@ import (
7
8
"github.com/bmatcuk/doublestar/v4"
9
"github.com/samber/lo"
10
+ "github.com/samber/lo/mutable"
11
)
12
13
type Docs []*Doc
@@ -29,7 +30,7 @@ func NewDocs(
29
30
}
31
32
sort.Strings(matches)
- matches = lo.Reverse(matches)
33
+ mutable.Reverse(matches)
34
35
if limit > 0 && len(matches) > limit {
36
matches = matches[:limit]
go.mod
@@ -70,5 +70,3 @@ require (
70
gopkg.in/yaml.v2 v2.4.0 // indirect
71
gopkg.in/yaml.v3 v3.0.1 // indirect
72
73
-
74
-replace github.com/imdario/mergo => github.com/imdario/mergo v0.3.16
0 commit comments