lib

package
v0.0.0-...-4d00197 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertAndPrintFromArgsOrStdin

func ConvertAndPrintFromArgsOrStdin(convert convertFunc, args []string) error

ConvertAndPrintFromArgsOrStdin takes a conversion function, and as conversion input it uses (1) files or strings specified in args; or (2) stdin. The conversion function should convert an input string to another (output) string. It's a utility for writing simple code for processing textfiles, typically converting each input line into another output line (upcase, line length, etc).

func ConvertAndPrintFromFilesOrStdin

func ConvertAndPrintFromFilesOrStdin(convert convertFunc, files []string) error

ConvertAndPrintFromFilesOrStdin

Types

This section is empty.

Jump to

Keyboard shortcuts

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