browser

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package browser opens a URL in the default browser without waiting for the browser to exit.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(url string) error

Open opens url in the default browser.

The opener command (for example xdg-open on Linux) exits at once when it gives the URL to a browser that runs already. When no browser runs, the opener starts one and does not exit until that browser exits. Open does not wait for that: if the opener still runs after handoffWait, Open returns nil and the opener continues in the background.

If the opener fails before handoffWait, Open returns its error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址