github.com/goplus/igop@v0.25.0/pkg/context/go118_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.18 && !go1.19
     4  // +build go1.18,!go1.19
     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  			"CancelFunc": reflect.TypeOf((*q.CancelFunc)(nil)).Elem(),
    32  		},
    33  		AliasTypes: map[string]reflect.Type{},
    34  		Vars: map[string]reflect.Value{
    35  			"Canceled":         reflect.ValueOf(&q.Canceled),
    36  			"DeadlineExceeded": reflect.ValueOf(&q.DeadlineExceeded),
    37  		},
    38  		Funcs: map[string]reflect.Value{
    39  			"Background":   reflect.ValueOf(q.Background),
    40  			"TODO":         reflect.ValueOf(q.TODO),
    41  			"WithCancel":   reflect.ValueOf(q.WithCancel),
    42  			"WithDeadline": reflect.ValueOf(q.WithDeadline),
    43  			"WithTimeout":  reflect.ValueOf(q.WithTimeout),
    44  			"WithValue":    reflect.ValueOf(q.WithValue),
    45  		},
    46  		TypedConsts:   map[string]igop.TypedConst{},
    47  		UntypedConsts: map[string]igop.UntypedConst{},
    48  	})
    49  }