MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / openBrowser

Function openBrowser

internal/tui/browser.go:9–20  ·  view source on GitHub ↗

openBrowser opens the specified URL in the user's default browser.

(url string)

Source from the content-addressed store, hash-verified

7
8// openBrowser opens the specified URL in the user's default browser.
9func openBrowser(url string) error {
10 switch runtime.GOOS {
11 case "darwin":
12 return exec.Command("open", url).Start()
13 case "linux":
14 return exec.Command("xdg-open", url).Start()
15 case "windows":
16 return exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start()
17 default:
18 return exec.Command("xdg-open", url).Start()
19 }
20}

Callers 1

startOAuthMethod · 0.85

Calls 1

StartMethod · 0.45

Tested by

no test coverage detected