Debian Codegraph @

/

debian golang-github-pkg-browser 0.0~git20240102.5ac0b6a-1debian golang-github-pkg-browser-dev gomod github.com/pkg/browser debiangogoinimakefilemarkdownshellyaml 23 files · 94 symbols
README (full)

browser

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.Stderr

Stderr is the io.Writer to which executed commands write standard error.

var Stdout io.Writer = os.Stdout

Stdout is the io.Writer to which executed commands write standard output.

func OpenFile

func OpenFile(path string) error

OpenFile opens new browser window for the file path.

func OpenReader

func OpenReader(r io.Reader) error

OpenReader consumes the contents of r and presents the results in a new browser window.

func OpenURL

func OpenURL(url string) error

OpenURL opens a new browser window pointing to url.


Generated by godoc2md

dir .github/
dir debian/
dir examples/
file LICENSE
file README.md
file browser.go
file browser_darwin.go
file browser_freebsd.go
file browser_linux.go
file browser_netbsd.go
file browser_openbsd.go
file browser_unsupported.go
file browser_windows.go
file example_test.go
file go.mod
file go.sum