Documentation
¶
Overview ¶
Package browser provides cross-platform functionality for opening URLs in the default web browser. It abstracts the underlying operating system commands and provides a simple interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPlatformInfo ¶
func GetPlatformInfo() map[string]interface{}
GetPlatformInfo returns a map containing details about the current platform's browser opening capabilities, including the OS, architecture, and available commands.
Returns:
- A map with platform-specific browser support information.
func IsAvailable ¶
func IsAvailable() bool
IsAvailable checks if the system has a command available to open a web browser. It verifies the presence of necessary commands for the current operating system.
Returns:
- true if a browser can be opened, false otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.