Documentation
¶
Overview ¶
Package browser provides utilities for opening URLs in the system's default browser.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedOS = errors.New("unsupported operating system")
ErrUnsupportedOS is returned when the current operating system is not supported for browser operations.
Functions ¶
func Open ¶
Open opens the given URL in the system's default browser. It returns an error if the browser could not be launched or if the operating system is unsupported.
Supported operating systems:
- darwin (macOS) - uses "open" command
- linux - uses "xdg-open" command
- windows - uses "cmd /c start" command
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.