browser

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Browser

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

Browser provides a small, dependency-free wrapper around a Chromium-compatible binary. It is intentionally simple to keep clawgo deployable as a single Go binary without extra Go browser dependencies.

func New

func New() *Browser

func (*Browser) Available

func (b *Browser) Available() bool

func (*Browser) Content

func (b *Browser) Content(ctx context.Context, url string) (string, error)

func (*Browser) Screenshot

func (b *Browser) Screenshot(ctx context.Context, url, outputPath string) error

func (*Browser) SetTimeout

func (b *Browser) SetTimeout(timeout time.Duration)

Jump to

Keyboard shortcuts

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