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

local

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: 4 Imported by: 0

Documentation

Overview

Package local implements the `local` shell built-in. `local NAME[=VALUE]...` declares a function-local variable. mvdan/sh handles this via *syntax.DeclClause when used inside a function. Our registration is reachable via /bin/local and rejects use outside a function (we cannot detect function context here, so we just allow it as a best-effort assignment).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() command.Command

New returns the local command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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