ingest

command
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command ingest turns references into documents. A path, a directory, a glob, a URL, a stream, a string already in hand: each is read by one reader, and every document that comes back carries the origin it was read from — reference, byte offset, size, modification time, content hash, type.

The HTTP part runs against a server this program starts on loopback, so the example needs no network. It also shows the refusal that guards a fetch of an attacker-supplied URL: an internal address is blocked unless the caller says otherwise.

go run ./examples/ingest

Jump to

Keyboard shortcuts

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