Go OS Signals

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

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.


Got any Go Question?