OS Signals

Download go eBook

Syntax

  • func Notify(c chan<- os.Signal, sig ...os.Signal)

Parameters

ParameterDetails
c chan<- os.SignalReceiving channel specifically of type os.Signal; easily created with sigChan := make(chan os.Signal)
sig ...os.SignalList of os.Signal types to catch and send down this channel. See https://golang.org/pkg/syscall/#pkg-constants for more options.

Related Examples

Stats

45 Contributors: 3
Saturday, July 30, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook