Closed ucirello closed 1 week ago
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
You are right @seankhliao -- sorry for my lack of attention to what I thought I saw.
Go version
go1.23
Output of
go env
in your module/workspace:What did you do?
I am trying to understand how Go handles signals on Windows.
What did you see happen?
When I read https://pkg.go.dev/os/signal?GOOS=windows#hdr-Windows, I see:
However, in
https://pkg.go.dev/syscall?GOOS=windows
there is nosyscall.SIGTERM
.What did you expect to see?
Probably, the documentation meant me to use
https://pkg.go.dev/golang.org/x/sys/windows
.I would expect the
os/signal
to indicate that I should look for the package described above.