From 3ded35331e19b530ad418dd04cae84b6f61e27b1 Mon Sep 17 00:00:00 2001 From: Mohammad Ismail <96207520+mouismail@users.noreply.github.com> Date: Mon, 7 Oct 2024 18:46:23 +0200 Subject: [PATCH] Add Go doc comment Co-authored-by: Kynan Ware <47394200+BagToad@users.noreply.github.com> --- oauth.go | 1 + 1 file changed, 1 insertion(+) diff --git a/oauth.go b/oauth.go index 9f26052..4e1c5ef 100644 --- a/oauth.go +++ b/oauth.go @@ -25,6 +25,7 @@ type Host struct { TokenURL string } +// NewGitHubHost constructs a Host from the given URL to a GitHub instance. func NewGitHubHost(hostURL string) (*Host, error) { base, err := url.Parse(strings.TrimSpace(hostURL)) if err != nil {