diff --git a/.goreleaser.yml b/.goreleaser.yml index 2148924..5564a82 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -6,6 +6,7 @@ before: - go generate ./... - gometalinter.v2 ./... --vendor --deadline=1m --disable-all --enable=gosec - golangci-lint run --enable-all + - go test -failfast -race ./... builds: - env: - CGO_ENABLED=0 diff --git a/avg/distance.go b/avg/distance.go index 6535405..85a3ce7 100644 --- a/avg/distance.go +++ b/avg/distance.go @@ -2,7 +2,6 @@ package avg import ( "context" - "fmt" "github.com/AskAlexSharov/imgdiff/loader" "github.com/Nr90/imgsim" @@ -25,8 +24,6 @@ func Distance(ctx context.Context, fileName1, fileName2 string) (int, error) { } ahash2 := imgsim.AverageHash(r2.Img) - fmt.Println(ahash1) - fmt.Println(ahash2) return imgsim.Distance(ahash1, ahash2) % 64, nil // because 64 bit hash }