mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
chore(lint): modernize Go (#7536)
Use modern Go constructs through the modernize analyzer from the golang.org/x/tools package. Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
This commit is contained in:
@@ -22,7 +22,7 @@ type pattern struct {
|
||||
count uint32
|
||||
period time.Duration
|
||||
pattern *regexp.Regexp
|
||||
logCallback func(format string, v ...interface{})
|
||||
logCallback func(format string, v ...any)
|
||||
}
|
||||
|
||||
func (p *pattern) timer() *time.Timer {
|
||||
|
||||
Reference in New Issue
Block a user