// Commands returns a list of possible commands to use to open a url. func Commands() [][]string { … } // Open tries to open url in a browser and reports whether it succeeded. func Open(url string) bool { … } // 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 { … }