16 lines
240 B
Go
16 lines
240 B
Go
//go: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)
|
|
}
|