Skip to content

Glossary: Go Beyond the Basics

Ctrl+C

Also written: interrupt, os.Interrupt

The keyboard shortcut that sends an interrupt signal to a running program. In Go, `signal.NotifyContext` turns it into a canceled context so the program can stop tidily.

Where the book teaches it

Related terms

signal.NotifyContextsrv.Shutdown