Apply go fix -any ./...

This commit is contained in:
Michael Eischer
2026-07-22 22:25:18 +02:00
parent d4088aa09b
commit 32e9869cc8
63 changed files with 197 additions and 197 deletions
+3 -3
View File
@@ -39,7 +39,7 @@ func init() {
pflag.Parse()
}
func die(f string, args ...interface{}) {
func die(f string, args ...any) {
if !strings.HasSuffix(f, "\n") {
f += "\n"
}
@@ -48,7 +48,7 @@ func die(f string, args ...interface{}) {
os.Exit(1)
}
func msg(f string, args ...interface{}) {
func msg(f string, args ...any) {
if !strings.HasSuffix(f, "\n") {
f += "\n"
}
@@ -56,7 +56,7 @@ func msg(f string, args ...interface{}) {
fmt.Printf(f, args...)
}
func verbose(f string, args ...interface{}) {
func verbose(f string, args ...any) {
if !opts.Verbose {
return
}
+2 -2
View File
@@ -43,7 +43,7 @@ func init() {
pflag.Parse()
}
func die(f string, args ...interface{}) {
func die(f string, args ...any) {
if !strings.HasSuffix(f, "\n") {
f += "\n"
}
@@ -52,7 +52,7 @@ func die(f string, args ...interface{}) {
os.Exit(1)
}
func msg(f string, args ...interface{}) {
func msg(f string, args ...any) {
if !strings.HasSuffix(f, "\n") {
f += "\n"
}