mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-10-29 15:02:30 +00:00
Apply go fix to simplify using modern features
This patch contains the result of running `go fix ./...`, which applies simplifications that make use of modern language features. There are no logic or behaviour changes.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
//go:build !coverage
|
||||
// +build !coverage
|
||||
|
||||
// Generate an HTML visualization of a Go coverage profile.
|
||||
// Serves a similar purpose to "go tool cover -html", but has a different
|
||||
@@ -25,7 +24,7 @@ var (
|
||||
notes = flag.String("notes", "", "notes to add at the beginning (HTML)")
|
||||
)
|
||||
|
||||
func errorf(f string, a ...interface{}) {
|
||||
func errorf(f string, a ...any) {
|
||||
fmt.Printf(f, a...)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user