browser

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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