Versions in this module Expand all Collapse all v0 v0.1.2 Jun 7, 2023 Changes in this version + const PageA4Height + const PageA4Width + var ChromeExecutable = LocateChrome + func LocateChrome() string + func PDF(url, script string, width, height int) ([]byte, error) + func PNG(url, script string, x, y, width, height int, bg uint32, scale float32) ([]byte, error) + func PromptDownload() + type Bounds struct + Height int + Left int + Top int + Width int + WindowState WindowState + type UI interface + Bind func(name string, f interface{}) error + Bounds func() (Bounds, error) + Close func() error + Done func() <-chan struct{} + Eval func(js string) Value + Load func(url string) error + SetBounds func(Bounds) error + func New(url, dir string, width, height int, customArgs ...string) (UI, error) + type Value interface + Array func() []Value + Bool func() bool + Bytes func() []byte + Err func() error + Float func() float32 + Int func() int + Object func() map[string]Value + String func() string + To func(interface{}) error + type WindowState string + const WindowStateFullscreen + const WindowStateMaximized + const WindowStateMinimized + const WindowStateNormal v0.1.1 Jun 7, 2023