github.com/goplus/igop@v0.25.0/pkg/sync/go116_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package sync
     6  
     7  import (
     8  	q "sync"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/igop"
    13  )
    14  
    15  func init() {
    16  	igop.RegisterPackage(&igop.Package{
    17  		Name: "sync",
    18  		Path: "sync",
    19  		Deps: map[string]string{
    20  			"internal/race": "race",
    21  			"runtime":       "runtime",
    22  			"sync/atomic":   "atomic",
    23  			"unsafe":        "unsafe",
    24  		},
    25  		Interfaces: map[string]reflect.Type{
    26  			"Locker": reflect.TypeOf((*q.Locker)(nil)).Elem(),
    27  		},
    28  		NamedTypes: map[string]reflect.Type{
    29  			"Cond":      reflect.TypeOf((*q.Cond)(nil)).Elem(),
    30  			"Map":       reflect.TypeOf((*q.Map)(nil)).Elem(),
    31  			"Mutex":     reflect.TypeOf((*q.Mutex)(nil)).Elem(),
    32  			"Once":      reflect.TypeOf((*q.Once)(nil)).Elem(),
    33  			"Pool":      reflect.TypeOf((*q.Pool)(nil)).Elem(),
    34  			"RWMutex":   reflect.TypeOf((*q.RWMutex)(nil)).Elem(),
    35  			"WaitGroup": reflect.TypeOf((*q.WaitGroup)(nil)).Elem(),
    36  		},
    37  		AliasTypes: map[string]reflect.Type{},
    38  		Vars:       map[string]reflect.Value{},
    39  		Funcs: map[string]reflect.Value{
    40  			"NewCond": reflect.ValueOf(q.NewCond),
    41  		},
    42  		TypedConsts:   map[string]igop.TypedConst{},
    43  		UntypedConsts: map[string]igop.UntypedConst{},
    44  	})
    45  }