summaryrefslogtreecommitdiffstats
path: root/common/text
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-17 22:03:27 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-03-17 22:03:27 +0100
commitb80853de90b10171155b8f3fde47d64ec7bfa0dd (patch)
tree435d3dbf7a495a0c6ce64c9769e037179aa0d27b /common/text
parent423594e03a906ef4150f433666ff588b022c3c92 (diff)
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
Diffstat (limited to 'common/text')
-rw-r--r--common/text/position.go2
-rw-r--r--common/text/transform.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/text/position.go b/common/text/position.go
index 5dd64526a..34e856c5d 100644
--- a/common/text/position.go
+++ b/common/text/position.go
@@ -69,7 +69,7 @@ func createPositionStringFormatter(formatStr string) func(p Position) string {
format := replacer.Replace(formatStr)
f := func(pos Position) string {
- args := make([]interface{}, len(identifiersFound))
+ args := make([]any, len(identifiersFound))
for i, id := range identifiersFound {
switch id {
case ":file":
diff --git a/common/text/transform.go b/common/text/transform.go
index 66a67d8bc..b324b54c1 100644
--- a/common/text/transform.go
+++ b/common/text/transform.go
@@ -24,7 +24,7 @@ import (
)
var accentTransformerPool = &sync.Pool{
- New: func() interface{} {
+ New: func() any {
return transform.Chain(norm.NFD, runes.Remove(runes.In(unicode.Mn)), norm.NFC)
},
}