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

llmstxt

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package llmstxt finds and validates /llms.txt files (https://llmstxt.org).

Index

Constants

View Source
const MaxSize = 2 << 20

MaxSize is the largest file read.

Variables

View Source
var Paths = []string{"/llms.txt", "/llms-full.txt"}

Paths are the well-known files checked at the site root.

Functions

func Check

func Check(ctx context.Context, get Getter, target string) ([]types.LLMsTxt, error)

Check fetches each well-known llms.txt path at the origin of target.

Types

type Getter

type Getter func(ctx context.Context, url string) (status int, body []byte, err error)

Getter performs a GET and returns the status and body.

Jump to

Keyboard shortcuts

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