mirror of
https://gitee.com/gokins/gokins.git
synced 2024-12-04 20:27:36 +08:00
13 lines
166 B
Go
13 lines
166 B
Go
|
package mgr
|
||
|
|
||
|
import "context"
|
||
|
|
||
|
var (
|
||
|
mgrCtx context.Context
|
||
|
Cancel context.CancelFunc
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
mgrCtx, Cancel = context.WithCancel(context.Background())
|
||
|
}
|