Skip to content

Commit

Permalink
Add note about New() to README.md example.
Browse files Browse the repository at this point in the history
Also update godoc link to v2 module.
  • Loading branch information
wlynch committed Jul 28, 2023
1 parent 97d7371 commit 93d62ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ghinstallation

[![GoDoc](https://godoc.org/github.com/bradleyfalzon/ghinstallation?status.svg)](https://godoc.org/github.com/bradleyfalzon/ghinstallation)
[![GoDoc](https://godoc.org/github.com/bradleyfalzon/ghinstallation?status.svg)](https://godoc.org/github.com/bradleyfalzon/ghinstallation/v2)

`ghinstallation` provides `Transport`, which implements `http.RoundTripper` to
provide authentication as an installation for GitHub Apps.
Expand Down Expand Up @@ -39,6 +39,8 @@ func main() {
}
```

You can also use [`New()`](https://pkg.go.dev/github.com/bradleyfalzon/ghinstallation/v2#New) to load a key directly from a `[]byte`.

# GitHub Enterprise Example

For clients using GitHub Enterprise, set the base URL as follows:
Expand Down

0 comments on commit 93d62ab

Please sign in to comment.