browser

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Browser

type Browser struct{}

func New

func New() *Browser

func (*Browser) Open

func (*Browser) Open(url string) error

Open opens the default browser.

func (*Browser) OpenCommand

func (*Browser) OpenCommand(ctx context.Context, url, command string) error

OpenCommand opens the browser using the command.

type Opener

type Opener interface {
	Open(url string) error
	OpenCommand(ctx context.Context, url, command string) error
}

Jump to

Keyboard shortcuts

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