Skip to content
This repository was archived by the owner on May 2, 2022. It is now read-only.

Commit ae0d592

Browse files
committed
move setFlags function to browser_windows.go
1 parent 9dd5dcd commit ae0d592

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

browser.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,3 @@ func runCmd(prog string, args ...string) error {
6666
setFlags(cmd)
6767
return cmd.Run()
6868
}
69-
70-
func setFlags(cmd *exec.Cmd) {}

browser_windows.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ import "golang.org/x/sys/windows"
55
func openBrowser(url string) error {
66
return windows.ShellExecute(0, nil, windows.StringToUTF16Ptr(url), nil, nil, windows.SW_SHOWNORMAL)
77
}
8+
9+
func setFlags(cmd *exec.Cmd) {}

0 commit comments

Comments
 (0)