Skip to content

Commit 1db7cf0

Browse files
committed
fix build
1 parent 4d2341f commit 1db7cf0

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

open.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//go:build !windows || !darwin
2-
// +build !windows !darwin
1+
//go:build linux
2+
// +build linux
33

44
package main
55

open_darwin.go

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
package main
55

6+
import (
7+
"fmt"
8+
"os/exec"
9+
)
10+
611
func Open(url string) error {
712
bin, err := exec.LookPath("open")
813
if err != nil {

open_windows.go

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
package main
55

6+
import (
7+
"fmt"
8+
"os/exec"
9+
"time"
10+
)
11+
612
// start up cmd.exe then run start command to open default browser
713
func Open(url string) error {
814
bin, err := exec.LookPath("cmd")

0 commit comments

Comments
 (0)