We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d2341f commit 1db7cf0Copy full SHA for 1db7cf0
open.go
@@ -1,5 +1,5 @@
1
-//go:build !windows || !darwin
2
-// +build !windows !darwin
+//go:build linux
+// +build linux
3
4
package main
5
open_darwin.go
@@ -3,6 +3,11 @@
6
+import (
7
+ "fmt"
8
+ "os/exec"
9
+)
10
+
11
func Open(url string) error {
12
bin, err := exec.LookPath("open")
13
if err != nil {
open_windows.go
@@ -3,6 +3,12 @@
+ "time"
// start up cmd.exe then run start command to open default browser
14
bin, err := exec.LookPath("cmd")
0 commit comments