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

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