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

command

package
v1.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Package command provides the cancellation boundary for example commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context

func Context(timeout time.Duration) (context.Context, context.CancelFunc)

Context cancels on SIGINT or SIGTERM and, when positive, after timeout. The caller must call the returned cancel function to release signal and timer resources.

Types

This section is empty.

Jump to

Keyboard shortcuts

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