VictoriaMetrics/vendor/github.com/pkg/browser/browser_windows.go

8 lines
192 B
Go
Raw Normal View History

2023-08-12 19:43:23 +00:00
package browser
import "golang.org/x/sys/windows"
func openBrowser(url string) error {
return windows.ShellExecute(0, nil, windows.StringToUTF16Ptr(url), nil, nil, windows.SW_SHOWNORMAL)
}