12 lines
118 B
Go
12 lines
118 B
Go
![]() |
package utils
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"os/signal"
|
||
|
)
|
||
|
|
||
|
func StopCatch(sigc chan os.Signal) {
|
||
|
signal.Stop(sigc)
|
||
|
close(sigc)
|
||
|
}
|