open-golang/open/exec.go

16 lines
239 B
Go
Raw Normal View History

// +build !windows,!darwin
package open
import (
"os/exec"
)
func open(input string) *exec.Cmd {
return exec.Command("xdg-open", input)
}
func openWith(input string, appName string) *exec.Cmd {
return exec.Command(appName, input)
}