aboutsummaryrefslogtreecommitdiffstats
path: root/lib/open_darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/open_darwin.go')
-rw-r--r--lib/open_darwin.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/open_darwin.go b/lib/open_darwin.go
deleted file mode 100644
index d98c8988..00000000
--- a/lib/open_darwin.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package lib
-
-import (
- "os/exec"
-)
-
-func OpenFile(filename string, onErr func(error)) {
- cmd := exec.Command("open", filename)
- err := cmd.Start()
- if err != nil && onErr != nil {
- onErr(err)
- return
- }
-
- go func() {
- err := cmd.Wait()
- if err != nil && onErr != nil {
- onErr(err)
- }
- }()
-}