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

exit

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 exit implements the `exit` shell built-in. `exit [N]` sets the script's exit status to N (default 0). mvdan/sh implements exit as a built-in that unwinds the runner; the registered version here is reachable via /bin/exit and reports the requested code through command.Result without unwinding mvdan's runner state (the dispatcher translates ExitCode into ExitStatus).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() command.Command

New returns the exit command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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