Documentation
¶
Overview ¶
Package browser provides utilities for interacting with users' browsers.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Commands ¶
func Commands() [][]string
Commands returns a list of possible commands to use to open a url.
func Open ¶
Open tries to open url in a browser and reports whether it succeeded.
Example (File) ¶
package main import ( "github.com/abc-inc/browser" ) func main() { _ = browser.Open("file:///tmp") }
Example (Url) ¶
package main import ( "github.com/abc-inc/browser" ) func main() { _ = browser.Open("http://localhost/") }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.