Documentation
¶
Overview ¶
Package webbrowser provides a simple API for opening web pages on your default browser.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCantOpen = errors.New("webbrowser.Open: can't open webpage") ErrNoCandidates = errors.New("webbrowser.Open: no browser candidate found for your OS.") )
View Source
var Candidates []Browser
List of registered `Browser`s that will be tried with Open.
Functions ¶
Types ¶
type GenericBrowser ¶
GenericBrowser just holds a command name and its arguments; the url will be appended as last arg. If you need to use string replacement for url define your own implementation.
func (GenericBrowser) Open ¶
func (gb GenericBrowser) Open(s string) error
Click to show internal directories.
Click to hide internal directories.