aboutsummaryrefslogtreecommitdiffhomepage
path: root/magefile.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-03-17 22:03:27 +0100
committerBjørn Erik Pedersen <[email protected]>2022-03-17 22:03:27 +0100
commitb80853de90b10171155b8f3fde47d64ec7bfa0dd (patch)
tree435d3dbf7a495a0c6ce64c9769e037179aa0d27b /magefile.go
parent423594e03a906ef4150f433666ff588b022c3c92 (diff)
downloadhugo-b80853de90b10171155b8f3fde47d64ec7bfa0dd.tar.gz
hugo-b80853de90b10171155b8f3fde47d64ec7bfa0dd.zip
all: gofmt -w -r 'interface{} -> any' .
Updates #9687
Diffstat (limited to 'magefile.go')
-rw-r--r--magefile.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/magefile.go b/magefile.go
index c016a57e4..b794e9a4b 100644
--- a/magefile.go
+++ b/magefile.go
@@ -43,7 +43,7 @@ func init() {
os.Setenv("GO111MODULE", "on")
}
-func runWith(env map[string]string, cmd string, inArgs ...interface{}) error {
+func runWith(env map[string]string, cmd string, inArgs ...any) error {
s := argsToStrings(inArgs...)
return sh.RunWith(env, cmd, s...)
}
@@ -324,7 +324,7 @@ func TestCoverHTML() error {
return sh.Run(goexe, "tool", "cover", "-html="+coverAll)
}
-func runCmd(env map[string]string, cmd string, args ...interface{}) error {
+func runCmd(env map[string]string, cmd string, args ...any) error {
if mg.Verbose() {
return runWith(env, cmd, args...)
}
@@ -361,7 +361,7 @@ func buildTags() string {
return "none"
}
-func argsToStrings(v ...interface{}) []string {
+func argsToStrings(v ...any) []string {
var args []string
for _, arg := range v {
switch v := arg.(type) {