nightingale1/timer/timer.go

13 lines
123 B
Go

package timer
import (
"os"
"github.com/toolkits/pkg/logger"
)
func exit(code int) {
logger.Close()
os.Exit(code)
}