Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[*] update README.md with v2 links #108

Merged
merged 1 commit into from
Oct 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ It's based on the well-known [sqlmock](https://github.com/DATA-DOG/go-sqlmock) l

## Install

go get github.com/pashagolub/pgxmock
go get github.com/pashagolub/pgxmock/v2

## Documentation and Examples

Visit [godoc](http://pkg.go.dev/github.com/pashagolub/pgxmock) for general examples and public api reference.
Visit [godoc](http://pkg.go.dev/github.com/pashagolub/pgxmock/v2) for general examples and public api reference.

See implementation examples:

Expand Down Expand Up @@ -93,7 +93,7 @@ import (
"fmt"
"testing"

"github.com/pashagolub/pgxmock"
"github.com/pashagolub/pgxmock/v2"
)

// a successful case
Expand Down Expand Up @@ -172,7 +172,7 @@ provide a standard sql parsing matchers.
## Matching arguments like time.Time

There may be arguments which are of `struct` type and cannot be compared easily by value like `time.Time`. In this case
**pgxmock** provides an [Argument](https://pkg.go.dev/github.com/pashagolub/pgxmock#Argument) interface which
**pgxmock** provides an [Argument](https://pkg.go.dev/github.com/pashagolub/pgxmock/v2#Argument) interface which
can be used in more sophisticated matching. Here is a simple example of time argument matching:

``` go
Expand Down