github.com/goplus/igop@v0.25.0/pkg/syscall/js/go120_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.20 && js 4 // +build go1.20,js 5 6 package js 7 8 import ( 9 q "syscall/js" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "js", 20 Path: "syscall/js", 21 Deps: map[string]string{ 22 "runtime": "runtime", 23 "sync": "sync", 24 "unsafe": "unsafe", 25 }, 26 Interfaces: map[string]reflect.Type{}, 27 NamedTypes: map[string]reflect.Type{ 28 "Error": reflect.TypeOf((*q.Error)(nil)).Elem(), 29 "Func": reflect.TypeOf((*q.Func)(nil)).Elem(), 30 "Type": reflect.TypeOf((*q.Type)(nil)).Elem(), 31 "Value": reflect.TypeOf((*q.Value)(nil)).Elem(), 32 "ValueError": reflect.TypeOf((*q.ValueError)(nil)).Elem(), 33 }, 34 AliasTypes: map[string]reflect.Type{}, 35 Vars: map[string]reflect.Value{}, 36 Funcs: map[string]reflect.Value{ 37 "CopyBytesToGo": reflect.ValueOf(q.CopyBytesToGo), 38 "CopyBytesToJS": reflect.ValueOf(q.CopyBytesToJS), 39 "FuncOf": reflect.ValueOf(q.FuncOf), 40 "Global": reflect.ValueOf(q.Global), 41 "Null": reflect.ValueOf(q.Null), 42 "Undefined": reflect.ValueOf(q.Undefined), 43 "ValueOf": reflect.ValueOf(q.ValueOf), 44 }, 45 TypedConsts: map[string]igop.TypedConst{ 46 "TypeBoolean": {reflect.TypeOf(q.TypeBoolean), constant.MakeInt64(int64(q.TypeBoolean))}, 47 "TypeFunction": {reflect.TypeOf(q.TypeFunction), constant.MakeInt64(int64(q.TypeFunction))}, 48 "TypeNull": {reflect.TypeOf(q.TypeNull), constant.MakeInt64(int64(q.TypeNull))}, 49 "TypeNumber": {reflect.TypeOf(q.TypeNumber), constant.MakeInt64(int64(q.TypeNumber))}, 50 "TypeObject": {reflect.TypeOf(q.TypeObject), constant.MakeInt64(int64(q.TypeObject))}, 51 "TypeString": {reflect.TypeOf(q.TypeString), constant.MakeInt64(int64(q.TypeString))}, 52 "TypeSymbol": {reflect.TypeOf(q.TypeSymbol), constant.MakeInt64(int64(q.TypeSymbol))}, 53 "TypeUndefined": {reflect.TypeOf(q.TypeUndefined), constant.MakeInt64(int64(q.TypeUndefined))}, 54 }, 55 UntypedConsts: map[string]igop.UntypedConst{}, 56 }) 57 }