changed old repo references

This commit is contained in:
2026-05-27 12:58:06 -05:00
parent f44802eeee
commit d7fc369cbd
10 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
ROOT_PKG ?= "github.com/vartanbeno/go-reddit" ROOT_PKG ?= "git.the-red-comet.org/guy176251/go-reddit"
LIST_PKG := $(shell go list $(ROOT_PKG)/...) LIST_PKG := $(shell go list $(ROOT_PKG)/...)
# Tests # Tests
+7 -7
View File
@@ -6,9 +6,9 @@
<div id='badges' align='center'> <div id='badges' align='center'>
[![Actions Status](https://github.com/vartanbeno/go-reddit/workflows/tests/badge.svg)](https://github.com/vartanbeno/go-reddit/actions) [![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/github.com/vartanbeno/go-reddit)](https://goreportcard.com/report/github.com/vartanbeno/go-reddit) [![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/github.com/vartanbeno/go-reddit/v2/reddit)](https://pkg.go.dev/github.com/vartanbeno/go-reddit/v2/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)
</div> </div>
@@ -24,16 +24,16 @@ You can view Reddit's official API documentation [here](https://www.reddit.com/d
## Install ## Install
To get a specific version from the list of [versions](https://github.com/vartanbeno/go-reddit/releases): To get a specific version from the list of [versions](https://git.the-red-comet.org/guy176251/go-reddit/releases):
```sh ```sh
go get github.com/vartanbeno/go-reddit/v2@vX.Y.Z go get git.the-red-comet.org/guy176251/go-reddit/v2@vX.Y.Z
``` ```
Or for the latest version: Or for the latest version:
```sh ```sh
go get github.com/vartanbeno/go-reddit/v2 go get git.the-red-comet.org/guy176251/go-reddit/v2
``` ```
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). 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 ```go
package main package main
import "github.com/vartanbeno/go-reddit/v2/reddit" import "git.the-red-comet.org/guy176251/go-reddit/v2/reddit"
func main() { func main() {
credentials := reddit.Credentials{ID: "id", Secret: "secret", Username: "username", Password: "password"} credentials := reddit.Credentials{ID: "id", Secret: "secret", Username: "username", Password: "password"}
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"log" "log"
"net/http" "net/http"
"github.com/vartanbeno/go-reddit/v2/reddit" "git.the-red-comet.org/guy176251/go-reddit/v2/reddit"
) )
var ctx = context.Background() var ctx = context.Background()
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"log" "log"
"github.com/vartanbeno/go-reddit/v2/reddit" "git.the-red-comet.org/guy176251/go-reddit/v2/reddit"
) )
var ctx = context.Background() var ctx = context.Background()
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"log" "log"
"github.com/vartanbeno/go-reddit/v2/reddit" "git.the-red-comet.org/guy176251/go-reddit/v2/reddit"
) )
var ctx = context.Background() var ctx = context.Background()
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"log/slog" "log/slog"
"os" "os"
"github.com/vartanbeno/go-reddit/v2/reddit" "git.the-red-comet.org/guy176251/go-reddit/v2/reddit"
) )
type Post struct { type Post struct {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/vartanbeno/go-reddit/v2/reddit" "git.the-red-comet.org/guy176251/go-reddit/v2/reddit"
) )
var ctx = context.Background() var ctx = context.Background()
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"log" "log"
"github.com/vartanbeno/go-reddit/v2/reddit" "git.the-red-comet.org/guy176251/go-reddit/v2/reddit"
) )
var ctx = context.Background() var ctx = context.Background()
+1 -1
View File
@@ -3,6 +3,7 @@ module git.the-red-comet.org/guy176251/go-reddit/v2
go 1.24.0 go 1.24.0
require ( require (
github.com/andybalholm/brotli v1.2.0
github.com/enetx/surf v1.0.173 github.com/enetx/surf v1.0.173
github.com/google/go-querystring v1.0.0 github.com/google/go-querystring v1.0.0
github.com/stretchr/testify v1.11.1 github.com/stretchr/testify v1.11.1
@@ -11,7 +12,6 @@ require (
) )
require ( require (
github.com/andybalholm/brotli v1.2.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect
github.com/enetx/g v1.0.202 // indirect github.com/enetx/g v1.0.202 // indirect
github.com/enetx/http v1.0.24 // indirect github.com/enetx/http v1.0.24 // indirect
+1 -1
View File
@@ -21,7 +21,7 @@ import (
) )
const ( const (
libraryName = "github.com/vartanbeno/go-reddit" libraryName = "git.the-red-comet.org/guy176251/go-reddit"
libraryVersion = "2.0.0" libraryVersion = "2.0.0"
defaultBaseURL = "https://oauth.reddit.com" defaultBaseURL = "https://oauth.reddit.com"