Help us shape the future of Go! Take the 2026 Go Developer Survey

mapfile

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mapfile implements the `mapfile` / `readarray` shell built-ins. Reads stdin line-by-line into an "array" represented as c.Env entries `<NAME>_<INDEX>`. The runner-side array semantics are not propagated (mvdan/sh's native mapfile does that); /bin/mapfile and /bin/readarray here are best-effort.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() command.Command

New returns the mapfile command.

func NewReadarray

func NewReadarray() command.Command

NewReadarray returns the readarray command (alias for mapfile).

Types

This section is empty.

Jump to

Keyboard shortcuts

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