Documentation ¶
Overview ¶
Package browser implements functions for opening a web browser.
This package also allows opening an URL back at the original host when run from an SSH session. In order for this to work, SSH agent forwarding must be enabled, the initial host must have SSH running on port 22 and the local and remote usernames must match. Otherwise a local browser is opened.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
Open opens the given file or URL in a browser. If fileOrUrl is a valid and existing file path, it calls OpenFile. Otherwise, it calls OpenURL.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.