From b5e75bcea04339f2a3d5cb6925286ce22f35117a Mon Sep 17 00:00:00 2001 From: Andrew Rodionoff Date: Sun, 30 Oct 2022 00:48:55 +0300 Subject: [PATCH] [go.mod] bump to v2 (#3) * [go.mod] bump to v2 * [v2] updated docs and examples --- README.md | 4 ++-- _example/basic/main.go | 2 +- _example/handler/main.go | 2 +- go.mod | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 88c77d4..c05f1f1 100644 --- a/README.md +++ b/README.md @@ -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 @@ -32,7 +32,7 @@ package main import ( "fmt" - "github.com/leonsteinhaeuser/observer" + "github.com/leonsteinhaeuser/observer/v2" ) type Event struct { diff --git a/_example/basic/main.go b/_example/basic/main.go index 277bbbe..db54835 100644 --- a/_example/basic/main.go +++ b/_example/basic/main.go @@ -5,7 +5,7 @@ import ( "sync" "time" - "github.com/leonsteinhaeuser/observer" + "github.com/leonsteinhaeuser/observer/v2" ) const ( diff --git a/_example/handler/main.go b/_example/handler/main.go index c84dd8a..0b5bb9b 100644 --- a/_example/handler/main.go +++ b/_example/handler/main.go @@ -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" ) diff --git a/go.mod b/go.mod index 3f2d590..b772b96 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/leonsteinhaeuser/observer +module github.com/leonsteinhaeuser/observer/v2 go 1.18