whatcanGOwrong

This commit is contained in:
2024-09-19 21:38:24 -04:00
commit d0ae4d841d
17908 changed files with 4096831 additions and 0 deletions
@@ -0,0 +1,24 @@
package main
import (
"fmt"
"os"
"os/signal"
)
func main() {
fmt.Println("Start")
sc := make(chan os.Signal, 1)
//os.Interrupt, os.Kill
signal.Notify(sc, os.Interrupt, os.Kill)
quit := <-sc
fmt.Printf("Receive signal %s \n", quit.String())
fmt.Println("End")
}