---
title: "Golang"
---
== Golang

=== Handling interrupts

[source,golang]
----
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
signal.Notify(c, syscall.SIGTERM)
----