.github
Convert to Go modulesexamples
added examplesbrowser_darwin.go
Remove os/exec import since not being usedbrowser_freebsd.go
Fix running project on Windows (#29)browser_linux.go
Fix running project on Windows (#29)browser_netbsd.go
Add support for NetBSD.browser_openbsd.go
Fix running project on Windows (#29)browser_unsupported.go
Add support for NetBSD.browser_windows.go
Use ShellExecute from golang.org/x/sys/windows (#34)browser.go
Create temporary file with .html extension in OpenReaderexample_test.go
fix quote layoutgo.mod
Bump golang.org/x/sys from 0.0.0-20210616045830-e2b7044e8c71 to 0.1.0 (#51)go.sum
Bump golang.org/x/sys from 0.0.0-20210616045830-e2b7044e8c71 to 0.1.0 (#51)LICENSE
Update LICENSEREADME.md
Allow reassignment of exec.Cmd Stdout and Stderrbrowser
import "github.com/pkg/browser"Package browser provides helpers to open files, readers, and urls in a browser window.
The choice of which browser is started is entirely client dependant.
Variables
var Stderr io.Writer = os.StderrStderr is the io.Writer to which executed commands write standard error.
var Stdout io.Writer = os.StdoutStdout is the io.Writer to which executed commands write standard output.
func OpenFile
func OpenFile(path string) errorOpenFile opens new browser window for the file path.
func OpenReader
func OpenReader(r io.Reader) errorOpenReader consumes the contents of r and presents the results in a new browser window.
func OpenURL
func OpenURL(url string) errorOpenURL opens a new browser window pointing to url.
Generated by godoc2md