all: gofmt -w -r 'interface{} -> any' .

Updates #9687
This commit is contained in:
Bjørn Erik Pedersen
2022-03-17 22:03:27 +01:00
parent 423594e03a
commit b80853de90
342 changed files with 2118 additions and 2102 deletions

View File

@@ -157,7 +157,7 @@ func TestPageSortReverse(t *testing.T) {
func TestPageSortByParam(t *testing.T) {
t.Parallel()
c := qt.New(t)
var k interface{} = "arbitrarily.nested"
var k any = "arbitrarily.nested"
unsorted := createSortTestPages(10)
delete(unsorted[9].Params(), "arbitrarily")
@@ -188,7 +188,7 @@ func TestPageSortByParamNumeric(t *testing.T) {
t.Parallel()
c := qt.New(t)
var k interface{} = "arbitrarily.nested"
var k any = "arbitrarily.nested"
n := 10
unsorted := createSortTestPages(n)
@@ -198,8 +198,8 @@ func TestPageSortByParamNumeric(t *testing.T) {
v = 100.0 - i
}
unsorted[i].(*testPage).params = map[string]interface{}{
"arbitrarily": map[string]interface{}{
unsorted[i].(*testPage).params = map[string]any{
"arbitrarily": map[string]any{
"nested": v,
},
}
@@ -268,8 +268,8 @@ func createSortTestPages(num int) Pages {
p := newTestPage()
p.path = fmt.Sprintf("/x/y/p%d.md", i)
p.title = fmt.Sprintf("Title %d", i%(num+1/2))
p.params = map[string]interface{}{
"arbitrarily": map[string]interface{}{
p.params = map[string]any{
"arbitrarily": map[string]any{
"nested": ("xyz" + fmt.Sprintf("%v", 100-i)),
},
}