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