Skip to content

Commit

Permalink
Add Go doc comment
Browse files Browse the repository at this point in the history
Co-authored-by: Kynan Ware <[email protected]>
  • Loading branch information
mouismail and BagToad authored Oct 7, 2024
1 parent b0f6cc7 commit 3ded353
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3ded353

Please sign in to comment.