mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
Enable goimports check, and fixes several imports format (#1525)
This fix enables goimports check and fixes several imports format
so that the import sections are prettier, e.g.:
```
import (
- "github.com/miekg/dns"
"regexp"
"strconv"
"strings"
+
+ "github.com/miekg/dns"
)
```
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
committed by
John Belamaric
parent
caf2553d7a
commit
4e63d0be35
@@ -2,11 +2,12 @@ package rewrite
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/coredns/coredns/plugin"
|
||||
"github.com/miekg/dns"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/coredns/coredns/plugin"
|
||||
"github.com/miekg/dns"
|
||||
)
|
||||
|
||||
type nameRule struct {
|
||||
|
||||
Reference in New Issue
Block a user