File: README.md

package info (click to toggle)
golang-github-cli-browser 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 120 kB
  • sloc: makefile: 3
file content (20 lines) | stat: -rw-r--r-- 338 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

# browser

Helpers to open URLs, readers, or files in the system default web browser.

This fork adds:

- `OpenReader` error wrapping;
- `ErrNotFound` error wrapping on BSD;
- Go 1.21 support.

## Usage

``` go
import "github.com/cli/browser"

err = browser.OpenURL(url)
err = browser.OpenFile(path)
err = browser.OpenReader(reader)
```