output

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 4 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 output redacts secrets and pages large tool output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeadTail

func HeadTail(path string, max int, id string) (string, error)

HeadTail returns the first two thirds and last third of a file, with a note naming the byte offset of the omitted middle.

func ReadPage

func ReadPage(path string, offset, max int) (text string, size int64, more bool, err error)

ReadPage returns up to max bytes at offset and reports the total size and whether further bytes remain. Offsets always refer to the raw file.

func Redact

func Redact(s string) string

Redact scrubs obvious credential material before text reaches a model.

func Size

func Size(path string) int64

Size returns the file size, or 0 when the file does not exist yet.

func Tail

func Tail(path string, max int) (string, error)

Tail returns the last max bytes of a file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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