github.com/15mga/kiwi@v0.0.2-0.20240324021231-b95d5c3ac751/util/ctx.go (about)

     1  package util
     2  
     3  import "context"
     4  
     5  var (
     6  	_Ctx, _Cancel = context.WithCancel(context.Background())
     7  )
     8  
     9  func Ctx() context.Context {
    10  	return _Ctx
    11  }
    12  
    13  func Cancel() {
    14  	_Cancel()
    15  }