Documentation
¶
Index ¶
Constants ¶
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 ¶
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 ¶
HostChromeShell is a go-rod launcher.Host-compatible adapter that ignores the revision argument and always returns the pinned chrome-headless-shell URL.
Types ¶
This section is empty.