13 lines
304 B
Go
13 lines
304 B
Go
|
//go:build windows
|
||
|
|
||
|
package etk
|
||
|
|
||
|
import "os/exec"
|
||
|
|
||
|
// Open opens a file, directory or URI using the default application registered
|
||
|
// in the OS to handle it. Only URIs are supported on WebAssembly.
|
||
|
func Open(target string) error {
|
||
|
cmd := exec.Command("cmd", "/C", "start", target)
|
||
|
return cmd.Start()
|
||
|
}
|