oneline

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 1 Imported by: 0 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

Package oneline folds a message onto one line, for a warning or a report row that quotes an error.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Of

func Of(s string) string

Of folds an error onto a single line and bounds its length.

Because a parser's error is not a sentence. The one this warning was written for arrives as eleven lines — pdfcpu prints the page's whole resource inventory after its message — and printed raw it takes the warning's shape apart: the continuation lines are unindented, so they read as output rather than as the reason for a warning. Taking the first line alone would not do either, since the message and the start of the inventory share it. Folded and capped, a reader gets the sentence and can re-run for the rest.

Types

This section is empty.

Jump to

Keyboard shortcuts

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