documentmetadata

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Copyright 2025 National Technology and Engineering Solutions of Sandia SPDX-License-Identifier: BSD-3-Clause

Index

Constants

View Source
const HTMLPrompt = `` /* 896-byte string literal not displayed */

HTMLPrompt instructs the LLM how to interpret the selected HTML evidence.

Variables

This section is empty.

Functions

func PrepareHTML

func PrepareHTML(raw []byte, config Config) (prepared string)

PrepareHTML tries to extract only HTML relevant to determining website metadata. If no useful regions are found, it returns raw HTML

Types

type Config

type Config struct {
	StartBytes int
	EndBytes   int
}

Config controls how much HTML evidence PrepareHTML returns from each end.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the payload limits used by the metadata extraction clients.

Jump to

Keyboard shortcuts

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