We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 165a129 commit b0f6cc7Copy full SHA for b0f6cc7
oauth.go
@@ -45,6 +45,8 @@ func NewGitHubHost(hostURL string) (*Host, error) {
45
}
46
47
// GitHubHost constructs a Host from the given URL to a GitHub instance.
48
+//
49
+// Deprecated: `GitHubHost` can panic with a malformed `hostURL`. Use `NewGitHubHost` instead for graceful error handling.
50
func GitHubHost(hostURL string) *Host {
51
u, _ := url.Parse(hostURL)
52
0 commit comments