Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FatalIfError ¶
func FatalIfError(err error)
FatalIfError prints err to stderr and exits with code 1.
Types ¶
type BrowserLauncher ¶
BrowserLauncher opens URLs.
type EditorLauncher ¶
EditorLauncher opens a file in $EDITOR.
type SystemBrowser ¶
type SystemBrowser struct{}
SystemBrowser is the real browser launcher.
func (*SystemBrowser) Browse ¶
func (b *SystemBrowser) Browse(url string) error
Browse opens the given URL in the system browser.
type SystemEditor ¶
type SystemEditor struct{}
SystemEditor is the real editor launcher.
func (*SystemEditor) Edit ¶
func (e *SystemEditor) Edit(filename string) error
Edit opens the given filename in $EDITOR.
Click to show internal directories.
Click to hide internal directories.