commandutil

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReaderWithContext

func ReaderWithContext(ctx context.Context, reader io.Reader) io.Reader

ReaderWithContext arranges for stdin reads to observe context cancellation. When the underlying reader is closable, cancellation also closes it so blocked reads can unblock promptly.

func ScannerTokenLimit

func ScannerTokenLimit(maxFileBytes int64) int

func WrapRedirectedFile

func WrapRedirectedFile(file gbfs.File, path string, flag int) io.ReadWriteCloser

Types

type RedirectMetadata

type RedirectMetadata interface {
	RedirectPath() string
	RedirectFlags() int
	RedirectOffset() int64
}

Jump to

Keyboard shortcuts

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