From e60ea7244dc0bb31792e5f658a19fb211be4c768 Mon Sep 17 00:00:00 2001 From: Vartan Benohanian Date: Sun, 31 Jan 2021 20:36:04 -0500 Subject: [PATCH] Bump version to v2 Signed-off-by: Vartan Benohanian --- README.md | 4 ++-- examples/client-on-request-completed/main.go | 2 +- examples/get-subreddit/main.go | 2 +- examples/get-top-posts/main.go | 2 +- examples/stream-posts/main.go | 2 +- examples/submit-post/main.go | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a93b92a..7240439 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![Actions Status](https://github.com/vartanbeno/go-reddit/workflows/tests/badge.svg)](https://github.com/vartanbeno/go-reddit/actions) [![Go Report Card](https://goreportcard.com/badge/github.com/vartanbeno/go-reddit)](https://goreportcard.com/report/github.com/vartanbeno/go-reddit) -[![PkgGoDev](https://pkg.go.dev/badge/github.com/vartanbeno/go-reddit/reddit)](https://pkg.go.dev/github.com/vartanbeno/go-reddit/reddit) +[![PkgGoDev](https://pkg.go.dev/badge/github.com/vartanbeno/go-reddit/v2/reddit)](https://pkg.go.dev/github.com/vartanbeno/go-reddit/v2/reddit) @@ -45,7 +45,7 @@ Make sure to have a Reddit app with a valid client id and secret. [Here](https:/ ```go package main -import "github.com/vartanbeno/go-reddit/reddit" +import "github.com/vartanbeno/go-reddit/v2/reddit" func main() { credentials := reddit.Credentials{ID: "id", Secret: "secret", Username: "username", Password: "password"} diff --git a/examples/client-on-request-completed/main.go b/examples/client-on-request-completed/main.go index c57c058..5f6a231 100644 --- a/examples/client-on-request-completed/main.go +++ b/examples/client-on-request-completed/main.go @@ -6,7 +6,7 @@ import ( "log" "net/http" - "github.com/vartanbeno/go-reddit/reddit" + "github.com/vartanbeno/go-reddit/v2/reddit" ) var ctx = context.Background() diff --git a/examples/get-subreddit/main.go b/examples/get-subreddit/main.go index 5e2c5e3..69dfcbd 100644 --- a/examples/get-subreddit/main.go +++ b/examples/get-subreddit/main.go @@ -5,7 +5,7 @@ import ( "fmt" "log" - "github.com/vartanbeno/go-reddit/reddit" + "github.com/vartanbeno/go-reddit/v2/reddit" ) var ctx = context.Background() diff --git a/examples/get-top-posts/main.go b/examples/get-top-posts/main.go index 1f62e0b..c01a6bb 100644 --- a/examples/get-top-posts/main.go +++ b/examples/get-top-posts/main.go @@ -5,7 +5,7 @@ import ( "fmt" "log" - "github.com/vartanbeno/go-reddit/reddit" + "github.com/vartanbeno/go-reddit/v2/reddit" ) var ctx = context.Background() diff --git a/examples/stream-posts/main.go b/examples/stream-posts/main.go index 9ade73b..bce4d0f 100644 --- a/examples/stream-posts/main.go +++ b/examples/stream-posts/main.go @@ -8,7 +8,7 @@ import ( "syscall" "time" - "github.com/vartanbeno/go-reddit/reddit" + "github.com/vartanbeno/go-reddit/v2/reddit" ) var ctx = context.Background() diff --git a/examples/submit-post/main.go b/examples/submit-post/main.go index c9c6ff1..61f3a67 100644 --- a/examples/submit-post/main.go +++ b/examples/submit-post/main.go @@ -5,7 +5,7 @@ import ( "fmt" "log" - "github.com/vartanbeno/go-reddit/reddit" + "github.com/vartanbeno/go-reddit/v2/reddit" ) var ctx = context.Background()