browser

package
v1.4.14 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBrowserUnimplemented = errors.New("browser type unimplemented for your OS")
	ErrPrivateNotSupported  = errors.New("private call not supported for browser")
	ErrCouldNotFindBrowser  = errors.New("could not find browser path")
)

Functions

This section is empty.

Types

type Brave added in v1.1.0

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

func (*Brave) OpenURL added in v1.1.0

func (f *Brave) OpenURL(ctx context.Context, url string) error

type Browser

type Browser interface {
	OpenURL(ctx context.Context, url string) error
}

func GetBrowser

func GetBrowser(browserName string, private bool) Browser

type Chrome added in v1.1.0

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

func (*Chrome) OpenURL added in v1.1.0

func (f *Chrome) OpenURL(ctx context.Context, url string) error

type Default

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

func (*Default) OpenURL

func (d *Default) OpenURL(ctx context.Context, url string) error

type Firefox

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

func (*Firefox) OpenURL

func (f *Firefox) OpenURL(ctx context.Context, url string) error

Jump to

Keyboard shortcuts

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