From eda8018886ccf1f64a6c76fb2622939b1c396a98 Mon Sep 17 00:00:00 2001 From: long Date: Wed, 27 May 2026 18:07:30 -0500 Subject: [PATCH] changed repo --- README.md | 8 ++++---- examples/client-on-request-completed/main.go | 2 +- examples/get-subreddit/main.go | 2 +- examples/get-top-posts/main.go | 2 +- examples/search/main.go | 2 +- examples/stream-posts/main.go | 2 +- examples/submit-post/main.go | 2 +- go.mod | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 8ea3dbd..e34c44d 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![Actions Status](https://git.the-red-comet.org/guy176251/go-reddit/workflows/tests/badge.svg)](https://git.the-red-comet.org/guy176251/go-reddit/actions) [![Go Report Card](https://goreportcard.com/badge/git.the-red-comet.org/guy176251/go-reddit)](https://goreportcard.com/report/git.the-red-comet.org/guy176251/go-reddit) -[![PkgGoDev](https://pkg.go.dev/badge/git.the-red-comet.org/guy176251/go-reddit/v2/reddit)](https://pkg.go.dev/git.the-red-comet.org/guy176251/go-reddit/v2/reddit) +[![PkgGoDev](https://pkg.go.dev/badge/git.the-red-comet.org/guy176251/reddit-go/reddit)](https://pkg.go.dev/git.the-red-comet.org/guy176251/reddit-go/reddit) @@ -27,13 +27,13 @@ You can view Reddit's official API documentation [here](https://www.reddit.com/d To get a specific version from the list of [versions](https://git.the-red-comet.org/guy176251/go-reddit/releases): ```sh -go get git.the-red-comet.org/guy176251/go-reddit/v2@vX.Y.Z +go get git.the-red-comet.org/guy176251/reddit-go@vX.Y.Z ``` Or for the latest version: ```sh -go get git.the-red-comet.org/guy176251/go-reddit/v2 +go get git.the-red-comet.org/guy176251/reddit-go ``` The repository structure for managing multiple major versions follows the one outlined [here](https://github.com/go-modules-by-example/index/tree/master/016_major_version_repo_strategy#major-branch-strategy). @@ -45,7 +45,7 @@ Make sure to have a Reddit app with a valid client id and secret. [Here](https:/ ```go package main -import "git.the-red-comet.org/guy176251/go-reddit/v2/reddit" +import "git.the-red-comet.org/guy176251/reddit-go/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 64a1417..cdf1efa 100644 --- a/examples/client-on-request-completed/main.go +++ b/examples/client-on-request-completed/main.go @@ -7,7 +7,7 @@ import ( "log" "net/http" - "git.the-red-comet.org/guy176251/go-reddit/v2/reddit" + "git.the-red-comet.org/guy176251/reddit-go/reddit" ) var ctx = context.Background() diff --git a/examples/get-subreddit/main.go b/examples/get-subreddit/main.go index f62ccaf..2dff715 100644 --- a/examples/get-subreddit/main.go +++ b/examples/get-subreddit/main.go @@ -5,7 +5,7 @@ import ( "fmt" "log" - "git.the-red-comet.org/guy176251/go-reddit/v2/reddit" + "git.the-red-comet.org/guy176251/reddit-go/reddit" ) var ctx = context.Background() diff --git a/examples/get-top-posts/main.go b/examples/get-top-posts/main.go index b104ccf..9052d20 100644 --- a/examples/get-top-posts/main.go +++ b/examples/get-top-posts/main.go @@ -5,7 +5,7 @@ import ( "fmt" "log" - "git.the-red-comet.org/guy176251/go-reddit/v2/reddit" + "git.the-red-comet.org/guy176251/reddit-go/reddit" ) var ctx = context.Background() diff --git a/examples/search/main.go b/examples/search/main.go index 55b2ba5..76a8160 100644 --- a/examples/search/main.go +++ b/examples/search/main.go @@ -5,7 +5,7 @@ import ( "log/slog" "os" - "git.the-red-comet.org/guy176251/go-reddit/v2/reddit" + "git.the-red-comet.org/guy176251/reddit-go/reddit" ) type Post struct { diff --git a/examples/stream-posts/main.go b/examples/stream-posts/main.go index 9d68610..02a4fb6 100644 --- a/examples/stream-posts/main.go +++ b/examples/stream-posts/main.go @@ -8,7 +8,7 @@ import ( "syscall" "time" - "git.the-red-comet.org/guy176251/go-reddit/v2/reddit" + "git.the-red-comet.org/guy176251/reddit-go/reddit" ) var ctx = context.Background() diff --git a/examples/submit-post/main.go b/examples/submit-post/main.go index 289d8fc..f08207c 100644 --- a/examples/submit-post/main.go +++ b/examples/submit-post/main.go @@ -5,7 +5,7 @@ import ( "fmt" "log" - "git.the-red-comet.org/guy176251/go-reddit/v2/reddit" + "git.the-red-comet.org/guy176251/reddit-go/reddit" ) var ctx = context.Background() diff --git a/go.mod b/go.mod index af0a557..5fa7868 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.the-red-comet.org/guy176251/go-reddit +module git.the-red-comet.org/guy176251/reddit-go go 1.24.0