Skip to content

Commit

Permalink
Use gci linter instead of goimports (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Pastro committed Sep 4, 2023
1 parent 704aee6 commit b908ca2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ linters:
enable:
- errname
- gofmt
- goimports
- gci
- sqlclosecheck
- stylecheck
- unconvert
- unparam

issues:
fix: true
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ import (
)

func main() {
q, err := pgmq.New(context.Background(), "postgres://postgres:password@localhost:5432/postgres")
ctx := context.Background()

q, err := pgmq.New(ctx, "postgres://postgres:password@localhost:5432/postgres")
if err != nil {
panic(err)
}

ctx := context.Background()

err = q.CreateQueue(ctx, "my_queue")
if err != nil {
panic(err)
Expand Down
2 changes: 1 addition & 1 deletion pgmq_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"testing"
"time"

"github.com/craigpastro/pgmq-go/mocks"
"github.com/craigpastro/retrier"
"github.com/jackc/pgx/v5/pgconn"
"github.com/stretchr/testify/require"
"github.com/testcontainers/testcontainers-go"
"github.com/testcontainers/testcontainers-go/wait"
"go.uber.org/mock/gomock"
"github.com/craigpastro/pgmq-go/mocks"
)

var q *PGMQ
Expand Down

0 comments on commit b908ca2

Please sign in to comment.