Skip to content

Commit

Permalink
Merge pull request #105 from wlynch/docs-new-example
Browse files Browse the repository at this point in the history
Add note about `New()` to README.md example.
  • Loading branch information
bradleyfalzon authored Jul 28, 2023
2 parents 97d7371 + 93d62ab commit d91afdc
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 d91afdc

Please sign in to comment.