File: browser_windows.go

package info (click to toggle)
golang-github-cli-browser 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 120 kB
  • sloc: makefile: 3
file content (7 lines) | stat: -rw-r--r-- 192 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
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)
}