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

@@ -43,7 +43,7 @@ type metaAssigner interface {
setTitle(title string)
setName(name string)
setMediaType(mediaType media.Type)
updateParams(params map[string]interface{})
updateParams(params map[string]any)
}
const counterPlaceHolder = ":counter"
@@ -53,7 +53,7 @@ const counterPlaceHolder = ":counter"
// This assignment is additive, but the most specific match needs to be first.
// The `name` and `title` metadata field support shell-matched collection it got a match in.
// See https://golang.org/pkg/path/#Match
func AssignMetadata(metadata []map[string]interface{}, resources ...resource.Resource) error {
func AssignMetadata(metadata []map[string]any, resources ...resource.Resource) error {
counters := make(map[string]int)
for _, r := range resources {