fix: 修复lint问题
This commit is contained in:
parent
3ed3047e35
commit
b7097680c6
3
Makefile
3
Makefile
@ -12,6 +12,9 @@ endif
|
||||
lint: check-golangci-lint
|
||||
golangci-lint run
|
||||
|
||||
lint-fix: check-golangci-lint
|
||||
golangci-lint run --fix
|
||||
|
||||
test: lint
|
||||
go test -v ./...
|
||||
|
||||
|
@ -2,13 +2,13 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/codfrm/dnspod-watch/pkg/pushcat"
|
||||
"log"
|
||||
|
||||
"github.com/codfrm/cago"
|
||||
"github.com/codfrm/cago/configs"
|
||||
"github.com/codfrm/cago/pkg/logger"
|
||||
"github.com/codfrm/dnspod-watch/internal/watch"
|
||||
"github.com/codfrm/dnspod-watch/pkg/pushcat"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,11 +3,11 @@ package watch
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/codfrm/dnspod-watch/pkg/pushcat"
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/codfrm/cago/pkg/logger"
|
||||
"github.com/codfrm/dnspod-watch/pkg/pushcat"
|
||||
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
|
||||
dnspod "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323"
|
||||
"go.uber.org/zap"
|
||||
|
@ -5,10 +5,11 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"github.com/codfrm/cago"
|
||||
"github.com/codfrm/cago/configs"
|
||||
"io"
|
||||
"net/http"
|
||||
|
||||
"github.com/codfrm/cago"
|
||||
"github.com/codfrm/cago/configs"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user