diff --git a/open-default_linux.go b/open-default_linux.go index 79e1db8..7daeac7 100644 --- a/open-default_linux.go +++ b/open-default_linux.go @@ -5,8 +5,11 @@ package main -import "os/exec" +import ( + "fmt" +) func openWithDefault(filePath string) error { // TODO: Add code to open file with default program on linux + return fmt.Errorf("\"open with default application\" not implemented in linux") } diff --git a/open-default_windows.go b/open-default_windows.go index 036a99a..d8984e8 100644 --- a/open-default_windows.go +++ b/open-default_windows.go @@ -5,7 +5,9 @@ package main -import "os/exec" +import ( + "os/exec" +) func openWithDefault(filePath string) error { cmd := exec.Command("explorer", filePath)