changed repo

This commit is contained in:
2026-05-27 18:07:30 -05:00
parent 8ac819cfc5
commit eda8018886
8 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -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)
</div>
@@ -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"}