aerc/lib/open_darwin.go

11 lines
134 B
Go
Raw Normal View History

package lib
import (
"os/exec"
)
func OpenFile(filename string) error {
cmd := exec.Command("open", filename)
return cmd.Run()
}