browser

package
v0.0.0-...-8796aea Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const GoogleChromeName = "chrome"
View Source
const MozillaFirefoxName = "firefox"

Variables

This section is empty.

Functions

This section is empty.

Types

type Browser

type Browser interface {
	Name() string
	Launch(url, profile string)
}

func DefaultBrowser

func DefaultBrowser() (Browser, error)

type GoogleChrome

type GoogleChrome struct{}

func (*GoogleChrome) Launch

func (b *GoogleChrome) Launch(url, profile string)

func (*GoogleChrome) Name

func (b *GoogleChrome) Name() string

type MozillaFirefox

type MozillaFirefox struct{}

func (*MozillaFirefox) Launch

func (b *MozillaFirefox) Launch(url, profile string)

func (*MozillaFirefox) Name

func (b *MozillaFirefox) Name() string

Jump to

Keyboard shortcuts

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