Documentation
¶
Overview ¶
Package browser provides functions for opening URLs in a web browser.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
func Open(url string)
Open opens the specified URL in the system's default browser. It detects the OS and uses the appropriate command: - 'open' for macOS (with optional -a flag if SKETCH_BROWSER is set) - 'cmd /c start' for Windows (or direct browser executable if SKETCH_BROWSER is set) - 'xdg-open' for Linux and other Unix-like systems (or direct browser executable if SKETCH_BROWSER is set)
If SKETCH_BROWSER environment variable is set, it will be used as the browser application: - On macOS: passed to 'open -a' - On Windows/Linux: used as direct executable
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.