You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changed the module path from /v2 to the base path in go.mod and updated all import statements in README.md accordingly. Updated changelog and documentation to reflect v1.3.0 instead of v2.0.0, and removed the v2 migration guide from the README.
`go-githubauth` is a Go package that provides utilities for GitHub authentication, including generating and using GitHub App tokens and installation tokens.
9
9
10
-
**v2.0.0** introduces Go generics support for unified authentication with both numeric App IDs and alphanumeric Client IDs in a single, type-safe API.
10
+
**v1.3.0** introduces Go generics support for unified authentication with both numeric App IDs and alphanumeric Client IDs in a single, type-safe API.
11
11
12
12
## Features
13
13
14
14
`go-githubauth` package provides implementations of the `TokenSource` interface from the `golang.org/x/oauth2` package. This interface has a single method, Token, which returns an *oauth2.Token.
15
15
16
-
### v2.0.0 Features
16
+
### v1.3.0 Features
17
17
18
18
-**🔥 Go Generics Support**: Single `NewApplicationTokenSource` function supports both `int64` App IDs and `string` Client IDs
19
19
-**🛡️ Type Safety**: Compile-time verification of identifier types through generic constraints
@@ -36,7 +36,7 @@
36
36
To use `go-githubauth` in your project, you need to have Go installed. You can get the package via:
37
37
38
38
```bash
39
-
go get -u github.com/jferrl/go-githubauth/v2
39
+
go get -u github.com/jferrl/go-githubauth
40
40
```
41
41
42
42
## Usage
@@ -55,7 +55,7 @@ import (
55
55
"strconv"
56
56
57
57
"github.com/google/go-github/v73/github"
58
-
"github.com/jferrl/go-githubauth/v2"
58
+
"github.com/jferrl/go-githubauth"
59
59
"golang.org/x/oauth2"
60
60
)
61
61
@@ -99,7 +99,7 @@ import (
99
99
"strconv"
100
100
101
101
"github.com/google/go-github/v73/github"
102
-
"github.com/jferrl/go-githubauth/v2"
102
+
"github.com/jferrl/go-githubauth"
103
103
"golang.org/x/oauth2"
104
104
)
105
105
@@ -144,7 +144,7 @@ import (
144
144
"os"
145
145
"time"
146
146
147
-
"github.com/jferrl/go-githubauth/v2"
147
+
"github.com/jferrl/go-githubauth"
148
148
)
149
149
150
150
funcmain() {
@@ -183,7 +183,7 @@ import (
183
183
"strconv"
184
184
"time"
185
185
186
-
"github.com/jferrl/go-githubauth/v2"
186
+
"github.com/jferrl/go-githubauth"
187
187
)
188
188
189
189
funcmain() {
@@ -223,7 +223,7 @@ import (
223
223
"os"
224
224
"strconv"
225
225
226
-
"github.com/jferrl/go-githubauth/v2"
226
+
"github.com/jferrl/go-githubauth"
227
227
)
228
228
229
229
funcmain() {
@@ -251,48 +251,6 @@ func main() {
251
251
}
252
252
```
253
253
254
-
## Migration from v1.x to v2.0.0
255
-
256
-
v2.0.0 introduces breaking changes with Go generics support. Here's how to migrate:
0 commit comments