Skip to content

Commit

Permalink
Setting v2 in README
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswdr committed Jan 20, 2024
1 parent ac5b36f commit 9a374a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Start at https://play.golang.org/p/JpTagDGBaHK
Add this to your Go file

```go
import "github.com/jaswdr/faker"
import "github.com/jaswdr/faker/v2"
```

And run `go get` or `dep ensure` to get the package.
Expand All @@ -37,7 +37,7 @@ And run `go get` or `dep ensure` to get the package.
Use `faker.New()` to create and initialize a faker generator, which can generate data by accessing properties named after the type of data you want.

```go
import "github.com/jaswdr/faker"
import "github.com/jaswdr/faker/v2"

func main() {
fake := faker.New()
Expand Down Expand Up @@ -131,15 +131,15 @@ See more formatters in [docs](https://pkg.go.dev/github.com/jaswdr/faker?tab=doc
Create a fork and get the code.

```bash
$ go get github.com/jaswdr/faker
$ go get github.com/jaswdr/faker/v2
```

Do your changes, add tests, run the tests.

```bash
$ go test
PASS
ok github.com/jaswdr/faker 0.010s
ok github.com/jaswdr/faker/v2 2.966s
```

Push to your fork and send a new pull request from your fork to this repository.
Expand Down

0 comments on commit 9a374a7

Please sign in to comment.