github.com/goplus/igop@v0.25.0/pkg/context/go120_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.20 && !go1.21 4 // +build go1.20,!go1.21 5 6 package context 7 8 import ( 9 q "context" 10 11 "reflect" 12 13 "github.com/goplus/igop" 14 ) 15 16 func init() { 17 igop.RegisterPackage(&igop.Package{ 18 Name: "context", 19 Path: "context", 20 Deps: map[string]string{ 21 "errors": "errors", 22 "internal/reflectlite": "reflectlite", 23 "sync": "sync", 24 "sync/atomic": "atomic", 25 "time": "time", 26 }, 27 Interfaces: map[string]reflect.Type{ 28 "Context": reflect.TypeOf((*q.Context)(nil)).Elem(), 29 }, 30 NamedTypes: map[string]reflect.Type{ 31 "CancelCauseFunc": reflect.TypeOf((*q.CancelCauseFunc)(nil)).Elem(), 32 "CancelFunc": reflect.TypeOf((*q.CancelFunc)(nil)).Elem(), 33 }, 34 AliasTypes: map[string]reflect.Type{}, 35 Vars: map[string]reflect.Value{ 36 "Canceled": reflect.ValueOf(&q.Canceled), 37 "DeadlineExceeded": reflect.ValueOf(&q.DeadlineExceeded), 38 }, 39 Funcs: map[string]reflect.Value{ 40 "Background": reflect.ValueOf(q.Background), 41 "Cause": reflect.ValueOf(q.Cause), 42 "TODO": reflect.ValueOf(q.TODO), 43 "WithCancel": reflect.ValueOf(q.WithCancel), 44 "WithCancelCause": reflect.ValueOf(q.WithCancelCause), 45 "WithDeadline": reflect.ValueOf(q.WithDeadline), 46 "WithTimeout": reflect.ValueOf(q.WithTimeout), 47 "WithValue": reflect.ValueOf(q.WithValue), 48 }, 49 TypedConsts: map[string]igop.TypedConst{}, 50 UntypedConsts: map[string]igop.UntypedConst{}, 51 }) 52 }