The stringer interface for type syscall.Signal should include the Go syscall symbol name in the string for the signal. For example, "SIGTERM" should appear in the string if the value is syscall.SIGTERM. Alternatively, provide a separate method for explicitly converting a syscall.Signal to its syscall symbol.
What version of Go are you using (go version)?
$ go version
go version go1.15.5 darwin/amd64
Does this issue reproduce with the latest release?
What did you do?
I did the equivalent of fmt.Println(syscall.SIGTERM).
What did you expect to see?
Something like SIGTERM (terminated).
What did you see instead?
The text was updated successfully, but these errors were encountered:
changed the title
Stringer API for syscall.Signal should include the symbolic identifier in its outputJan 4, 2021