browser

Package browser provides helpers to open files, readers, and urls in a browser window.

  • 所有者: pkg/browser
  • 平台:
  • 许可证: BSD 2-Clause "Simplified" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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

主要指标

概览
名称与所有者pkg/browser
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证BSD 2-Clause "Simplified" License
所有者活动
创建于2014-07-10 07:16:06
推送于2024-01-02 09:21:38
最后一次提交2024-01-02 10:21:30
发布数0
用户参与
星数588
关注者数14
派生数108
提交数46
已启用问题?
问题数20
打开的问题数12
拉请求数17
打开的拉请求数3
关闭的拉请求数12
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?