Standard library / os
os.Kill
Portable name for a forceful termination signal value. It is not catchable on Unix. This fixture only inspects the value. Example intended for Linux/AMD64 with Go 1.23.2 in a disposable working directory; other platforms may differ. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
var Kill SignalWorking Example
Example Snippetgo
package main
import ( "fmt" "os" "syscall")
func must(e error) { if e != nil { panic(e) }}func main() { fmt.Println(os.Kill == syscall.SIGKILL) }