browser

package
Version: v0.0.0-...-ee3923b Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 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