source

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 5 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasStdinBytes

func HasStdinBytes() bool

Checks if stdin has data available (not a TTY).

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder creates iosystem.Source instances from CLI flags. Supports stdin, files, and merge modes.

func New

func New() *Builder

New creates a source builder.

func (*Builder) Build

func (b *Builder) Build() (iosystem.Source, error)

Build creates the source based on configuration.

func (*Builder) Files

func (b *Builder) Files(dir string, file ...string) *Builder

Files sets the input to read from file paths. Multiple files will be read sequentially unless Merge is enabled.

func (*Builder) None

func (b *Builder) None() *Builder

func (*Builder) Stdin

func (b *Builder) Stdin() *Builder

Stdin sets the input to read from stdin. If reader is nil, os.Stdin is used.

Jump to

Keyboard shortcuts

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