From 93d62abb989460687271c494a1bd28b19e11a1f1 Mon Sep 17 00:00:00 2001 From: Billy Lynch Date: Fri, 28 Jul 2023 13:59:45 -0400 Subject: [PATCH] Add note about `New()` to README.md example. Also update godoc link to v2 module. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c3071e..cf5ea50 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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: