github.com/drycc/workflow-cli@v1.5.3-0.20240322092846-d4ee25983af9/pkg/webbrowser/webbrowser_windows.go (about) 1 //go:build windows 2 // +build windows 3 4 package webbrowser 5 6 import ( 7 "os/exec" 8 ) 9 10 // Webbrowser opens a URL with the default browser. 11 func Webbrowser(u string) (err error) { 12 _, err = exec.Command("cmd", "/c", "start", u).Output() 13 return 14 }