browser

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package browser resolves which Chrome binary cu should drive over CDP and, when the host has none, fetches a pinned Chrome for Testing build.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocatorOptions

func AllocatorOptions() []chromedp.ExecAllocatorOption

AllocatorOptions returns exec-allocator options with a resolved Chrome applied. With no resolved path chromedp keeps its own default search.

func Detect

func Detect() string

Detect returns a system Chrome path, or "" when the host has none.

func Download

func Download(ctx context.Context, w io.Writer) (string, error)

Download fetches the stable Chrome for Testing build for this host and unpacks it under ManagedDir. It reports progress to w and returns the executable path.

func Managed

func Managed() string

Managed returns the previously downloaded Chrome, or "" when absent.

func ManagedDir

func ManagedDir() (string, error)

ManagedDir is where an opt-in Chrome for Testing download is unpacked.

func Resolve

func Resolve() string

Resolve prefers a system Chrome and falls back to the managed download. An empty result means the caller should offer to download one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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