Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Source ¶
Source represents an input source (file or reader)
func Open ¶
Open returns Sources from args (files or defaultReader if empty/"-") If args is empty, returns a single source using defaultReader with name "standard input" If an arg is "-", uses defaultReader for that position Otherwise opens the file
func OpenOneWithDefault ¶
OpenOneWithDefault is a convenience function that opens a single source, defaulting to os.Stdin if no args provided
func OpenWithDefault ¶
OpenWithDefault is a convenience function that opens sources, defaulting to os.Stdin if no args provided
Click to show internal directories.
Click to hide internal directories.