chrome

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT-0 Imports: 16 Imported by: 1

Documentation

Overview

Package chrome provides support to locate and run Google Chrome (or Microsoft Edge).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInstalled

func IsInstalled() bool

IsInstalled checks if Chrome is installed.

Types

type Cmd

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

Cmd represents a Chrome instance being prepared or run.

func Command

func Command(url string, dataDir, cacheDir string, arg ...string) *Cmd

Command returns the Cmd struct to execute a Chrome app loaded from url, and with the given user data and disk cache directories.

func (*Cmd) Close added in v0.8.0

func (c *Cmd) Close() error

Close closes Chrome.

func (*Cmd) Run

func (c *Cmd) Run() error

Run starts Chrome and waits for it to complete.

func (*Cmd) Signal

func (c *Cmd) Signal(sig os.Signal) error

Signal sends a signal to Chrome.

func (*Cmd) Start

func (c *Cmd) Start() error

Start starts Chrome but does not wait for it to complete.

func (*Cmd) Wait

func (c *Cmd) Wait() error

Wait for Chrome to exit.

Jump to

Keyboard shortcuts

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