deb822

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package deb822 provides a streaming parser for RFC-822-style multi-stanza key/value format used by Debian package metadata (apt Packages files, dpkg status, etc.).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(r io.Reader, fn func(Stanza) error) error

Parse calls fn for each stanza in r. Returning an error from fn aborts. Empty lines separate stanzas. Lines starting with '#' are comments (skipped at top level only). Continuation lines (start with space/tab) append to the previous field. A " ." (space + dot) continuation line is a blank-line marker; translate to a literal blank line in the value.

Types

type Stanza

type Stanza map[string]string

Stanza is a parsed DEB822 paragraph: ordered map of field -> raw value (continuation lines preserved with leading-space marker stripped).

Jump to

Keyboard shortcuts

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