browserKit

package
v2.8.157 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// OpenURL 让默认浏览器打开网址.
	/*
		Open a new browser window pointing to url.
	*/
	OpenURL func(url string) error = browser.OpenURL

	// OpenFileOrDirectory 用对应工具打开文件(或目录).
	/*
		Open new browser window for the file path.
	*/
	OpenFileOrDirectory func(path string) error = browser.OpenFile

	// OpenReader
	/*
		Consume the contents of r and presents the results in a new browser window.
	*/
	OpenReader func(r io.Reader) error = browser.OpenReader
)

Functions

func SetOutputs

func SetOutputs(stdout, stderr io.Writer)

SetOutputs

@param stdout 可以为nil(默认: os.Stdout) @param stderr 可以为nil(默认: os.Stderr)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL