README.md

 1
 2# browser
 3    import "github.com/pkg/browser"
 4
 5Package browser provides helpers to open files, readers, and urls in a browser window.
 6
 7The choice of which browser is started is entirely client dependant.
 8
 9
10
11
12
13## Variables
14``` go
15var Stderr io.Writer = os.Stderr
16```
17Stderr is the io.Writer to which executed commands write standard error.
18
19``` go
20var Stdout io.Writer = os.Stdout
21```
22Stdout is the io.Writer to which executed commands write standard output.
23
24
25## func OpenFile
26``` go
27func OpenFile(path string) error
28```
29OpenFile opens new browser window for the file path.
30
31
32## func OpenReader
33``` go
34func OpenReader(r io.Reader) error
35```
36OpenReader consumes the contents of r and presents the
37results in a new browser window.
38
39
40## func OpenURL
41``` go
42func OpenURL(url string) error
43```
44OpenURL opens a new browser window pointing to url.
45
46
47
48
49
50
51
52
53
54- - -
55Generated by [godoc2md](http://godoc.org/github.com/davecheney/godoc2md)