3 import "github.com/pkg/browser"
5Package browser provides helpers to open files, readers, and urls in a browser window.
7The choice of which browser is started is entirely client dependant.
15var Stderr io.Writer = os.Stderr
17Stderr is the io.Writer to which executed commands write standard error.
20var Stdout io.Writer = os.Stdout
22Stdout is the io.Writer to which executed commands write standard output.
27func OpenFile(path string) error
29OpenFile opens new browser window for the file path.
34func OpenReader(r io.Reader) error
36OpenReader consumes the contents of r and presents the
37results in a new browser window.
42func OpenURL(url string) error
44OpenURL opens a new browser window pointing to url.
55Generated by [godoc2md](http://godoc.org/github.com/davecheney/godoc2md)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list