1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// +build darwin package open import ( "os/exec" ) func open(input string) *exec.Cmd { return exec.Command("open", input) } func openWith(input string, appName string) *exec.Cmd { return exec.Command("open", "-a", appName, input) }