August 2019
Beginner to intermediate
798 pages
17h 2m
English
In this subsection, you will learn how to handle two signals in a Go program using the code found in handleTwo.go, which will be presented in four parts. The signals that will be handled by handleTwo.go are SIGINFO and SIGINT, which in Go are named syscall.SIGINFO and os.Interrupt, respectively.
The first part of handleTwo.go contains the following Go code:
package main
import (
"fmt"
"os"
"os/signal"
"syscall"
"time"
)
The second part of the handleTwo.go program follows: ...
Read now
Unlock full access