Skip to content

Commit

Permalink
V2 package (#162)
Browse files Browse the repository at this point in the history
* Setting v2 in go.mod

* Setting v2 in README
  • Loading branch information
jaswdr authored Jan 20, 2024
1 parent a0f3f9b commit 514850e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/jaswdr/faker
module github.com/jaswdr/faker/v2

go 1.20

0 comments on commit 514850e

Please sign in to comment.