Help us shape the future of Go! Take the 2026 Go Developer Survey

chromeshell

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Version is the pinned Chrome for Testing chrome-headless-shell build.
	// Smaller and faster than full Chromium for headless screenshots on Linux.
	Version = "152.0.7977.42"
)

Variables

This section is empty.

Functions

func BinPath

func BinPath() string

BinPath returns the preferred executable path inside Dir, if present.

func Dir

func Dir() string

Dir returns the on-disk cache directory for the pinned chrome-headless-shell.

func Ensure

func Ensure() (string, error)

Ensure downloads chrome-headless-shell once into the shared browser cache and returns the executable path. It is a no-op download when the binary already exists. Callers should only invoke this when Supported() is true.

func Host

func Host() string

Host returns the Chrome for Testing chrome-headless-shell zip URL for linux/amd64. Other platforms should not use this host for downloads.

func HostChromeShell

func HostChromeShell(_ int) string

HostChromeShell is a go-rod launcher.Host-compatible adapter that ignores the revision argument and always returns the pinned chrome-headless-shell URL.

func Supported

func Supported() bool

Supported reports whether chrome-headless-shell auto-download is available for the current platform.

Types

This section is empty.

Jump to

Keyboard shortcuts

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