Skip to content
forked from cli/browser

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

License

Notifications You must be signed in to change notification settings

billie42/browser

 
 

Repository files navigation

browser

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

This fork adds:

  • safety when running inside of an untrusted directory on Windows;
  • WSL compatibility;
  • OpenReader error wrapping;
  • ErrNotFound error wrapping on BSD;
  • Go 1.13 support.

Usage

import "github.com/cli/browser"

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%