remove open-golang dependency

This commit is contained in:
Nazar Kanaev
2021-03-01 15:37:06 +00:00
parent 93eeef0131
commit 5b0b47635d
8 changed files with 37 additions and 7 deletions

12
src/platform/open_win.go Normal file
View File

@@ -0,0 +1,12 @@
// +build windows
import (
"os"
"os/exec"
"path/filepath"
)
func open(input string) *exec.Cmd {
rundll32 := filepath.Join(os.Getenv("SYSTEMROOT"), "System32", "rundll32.exe")
return exec.Command(rundll32, "url.dll,FileProtocolHandler", input)
}