github.com/sagernet/sing@v0.4.0-beta.19.0.20240518125136-f67a0988a636/common/context_compat.go (about) 1 //go:build go1.20 2 3 package common 4 5 import "context" 6 7 type ( 8 ContextCancelCauseFunc = context.CancelCauseFunc 9 ) 10 11 var ( 12 ContextWithCancelCause = context.WithCancelCause 13 ContextCause = context.Cause 14 )