remove open-golang dependency
This commit is contained in:
parent
93eeef0131
commit
5b0b47635d
8 changed files with 37 additions and 7 deletions
12
src/platform/open_win.go
Normal file
12
src/platform/open_win.go
Normal 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue