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

screenshot

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package screenshot wraps httpx's built-in screenshot mode to capture visual snapshots of every alive URL for the engagement report.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScreenshotFiles

func ScreenshotFiles(dir string) ([]string, error)

ScreenshotFiles returns the PNG snapshots captured under a screenshots dir, walking subdirectories because httpx (-srd) writes them as <dir>/screenshot/<host>/<hash>.png. Sorted by filename for determinism.

Types

type Module

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

Module reuses the httpx binary (its -screenshot mode) and therefore needs no dedicated tool installation.

func New

func New(binary string) *Module

func (*Module) Description

func (m *Module) Description() string

func (*Module) Name

func (m *Module) Name() string

func (*Module) Produces

func (m *Module) Produces() []string

func (*Module) Requires

func (m *Module) Requires() []string

func (*Module) Run

func (m *Module) Run(ctx context.Context, runCtx *modules.RunContext, executor runner.Executor) (*modules.Result, error)

Jump to

Keyboard shortcuts

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