Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
hellojukay committed Mar 3, 2022
1 parent 4d2341f commit 1db7cf0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions open.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !windows || !darwin
// +build !windows !darwin
//go:build linux
// +build linux

package main

Expand Down
5 changes: 5 additions & 0 deletions open_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

package main

import (
"fmt"
"os/exec"
)

func Open(url string) error {
bin, err := exec.LookPath("open")
if err != nil {
Expand Down
6 changes: 6 additions & 0 deletions open_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

package main

import (
"fmt"
"os/exec"
"time"
)

// start up cmd.exe then run start command to open default browser
func Open(url string) error {
bin, err := exec.LookPath("cmd")
Expand Down

0 comments on commit 1db7cf0

Please sign in to comment.