func Open(url *url.URL) error {
	var args []string
	if runtime.GOOS == "windows" {
		// Windows is special because the start command is built into cmd.exe
		// and hence requires the argument to be quoted.
		args = []string{"cmd", "/c", "start", winCmdQuote.Replace(url.String())}
	} else if b := browser[runtime.GOOS]; b != "" {
		args = []string{b, url.String()}
	} else {
		return ErrNoBrowser
	}
	cmd := exec.Command(args[0], args[1:]...)
	cmd.Stdout = os.Stdout
	cmd.Stderr = os.Stderr
	cmd.Start()
	go cmd.Wait()
	return nil
}
// Open opens a web browser at the given URL.
// If the OS is not recognized, an ErrNoBrowser is returned.
Open opens a web browser at the given URL.
If the OS is not recognized, an ErrNoBrowser is returned.
// Open opens a web browser at the given URL . // If the OS is not recognized an ErrNoBrowser is returned .
func Open(url *url.URL) error {
	var args []string
	if runtime.GOOS == "windows" {
		args = []string{"cmd", "/c", "start", winCmdQuote.Replace(url.String())}
	} else if b := browser[runtime.GOOS]; b != "" {
		args = []string{b, url.String()}
	} else {
		return ErrNoBrowser
	}
	cmd := exec.Command(args[0], args[1:]...)
	cmd.Stdout = os.Stdout
	cmd.Stderr = os.Stderr
	cmd.Start()
	go cmd.Wait()
	return nil
}
func Open ( url * url . URL ) error { var args [ ] string if runtime . GOOS == " " { args = [ ] string { " " , " " , " " , winCmdQuote . Replace ( url . String ( ) ) } } else if b := browser [ runtime . GOOS ] ; b != " " { args = [ ] string { b , url . String ( ) } } else { return ErrNoBrowser } cmd := exec . Command ( args [ 0 ] , args [ 1 : ] ... ) cmd . Stdout = os . Stdout cmd . Stderr = os . Stderr cmd . Start ( ) go cmd . Wait ( ) return nil }
Open opens a web browser at the given URL.
Open opens a web browser at the given URL .
// Windows is special because the start command is built into cmd.exe // and hence requires the argument to be quoted.