An open API service indexing awesome lists of open source software.

https://github.com/cli/browser

Go helpers to open URLs, files, or readers in a web browser.
https://github.com/cli/browser

Last synced: 9 months ago
JSON representation

Go helpers to open URLs, files, or readers in a web browser.

Awesome Lists containing this project

README

          

# 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)
```