browser

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenURL

func OpenURL(url string, optFuncs ...Option) error

OpenURL opens a new browser window pointing to url.

Types

type Option

type Option func(*Options)

Option is a function that modifies the Options configuration.

func WithStderr

func WithStderr(w io.Writer) Option

WithStderr sets the io.Writer for standard error.

func WithStdout

func WithStdout(w io.Writer) Option

WithStdout sets the io.Writer for standard output.

type Options

type Options struct {
	// contains filtered or unexported fields
}

Options holds the configuration for the browser package.

Jump to

Keyboard shortcuts

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