Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 338 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 338 Bytes

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

import "github.com/cli/browser"

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