I am new to go currently trying to understand some code wrote by a coworker
go func() {
s := <-sigs
if s == syscall.SIGURG {
fmt.Println("received sigur")
} else {
log.Printf("RECEIVED SIGNAL: %s", s)
os.Exit(1)
}
}()
I used both GoLand & VSCode and those two IDE report an error on if s == syscall.SIGURG {
They throw undefined: syscall.SIGURG
The thing is, I know this code works on Debian. So I'm trying why it's not working on my Windows computer
I have the required imports though :
import (
"fmt"
"os"
"os/signal"
"syscall"
)