Skip to content

Commit

Permalink
[go.mod] bump to v2 (#3)
Browse files Browse the repository at this point in the history
* [go.mod] bump to v2

* [v2] updated docs and examples
  • Loading branch information
andviro authored Oct 29, 2022
1 parent cb19d84 commit b5e75bc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The v2 release contains breaking changes. The most important ones are:
## Usage

```bash
go get github.com/leonsteinhaeuser/observer
go get github.com/leonsteinhaeuser/observer/v2
```

## Example
Expand All @@ -32,7 +32,7 @@ package main

import (
"fmt"
"github.com/leonsteinhaeuser/observer"
"github.com/leonsteinhaeuser/observer/v2"
)

type Event struct {
Expand Down
2 changes: 1 addition & 1 deletion _example/basic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync"
"time"

"github.com/leonsteinhaeuser/observer"
"github.com/leonsteinhaeuser/observer/v2"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion _example/handler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/hashicorp/go-multierror"
"github.com/leonsteinhaeuser/observer"
"github.com/leonsteinhaeuser/observer/v2"
"golang.org/x/sync/errgroup"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/leonsteinhaeuser/observer
module github.com/leonsteinhaeuser/observer/v2

go 1.18

Expand Down

0 comments on commit b5e75bc

Please sign in to comment.