browser

Imports

Imports #

"os"
"os/exec"
"runtime"
"time"

Functions

Commands function #

Commands returns a list of possible commands to use to open a url.

func Commands() [][]string

Open function #

Open tries to open url in a browser and reports whether it succeeded.

func Open(url string) bool

appearsSuccessful function #

appearsSuccessful reports whether the command appears to have run successfully. If the command runs longer than the timeout, it's deemed successful. If the command runs within the timeout, it's deemed successful if it exited cleanly.

func appearsSuccessful(cmd *exec.Cmd, timeout time.Duration) bool

Generated with Arrow