捕获ctrl + c信号 package main import ( "fmt" "os" "os/signal" "time" ) func main() { c := make(chan os.Signal, 1) ...阅读全文 2013-04-02 08:34:05