refacotr: move signal handling and pprof to grace package

This commit is contained in:
wuyuxiang
2020-04-28 14:10:23 +08:00
parent 2a7957b4ca
commit 6850d28d6b
13 changed files with 26 additions and 29 deletions

View File

@@ -1,4 +1,4 @@
package util
package grace
import (
"os"

View File

@@ -1,6 +1,6 @@
// +build !plan9
package util
package grace
import (
"os"

View File

@@ -1,6 +1,6 @@
// +build plan9
package util
package grace
func OnInterrupt(fn func()) {
}