github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/mojoprivate/bindings/import_wasm.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 4 //go:build wasm 5 6 package bindings 7 8 import ( 9 "unsafe" 10 11 "github.com/primecitizens/pcz/std/ffi/js" 12 ) 13 14 type ( 15 _ unsafe.Pointer 16 _ js.Ref 17 ) 18 19 //go:wasmimport plat/js/webext/mojoprivate has_RequireAsync 20 //go:noescape 21 func HasFuncRequireAsync() js.Ref 22 23 //go:wasmimport plat/js/webext/mojoprivate func_RequireAsync 24 //go:noescape 25 func FuncRequireAsync(fn unsafe.Pointer) 26 27 //go:wasmimport plat/js/webext/mojoprivate call_RequireAsync 28 //go:noescape 29 func CallRequireAsync( 30 retPtr unsafe.Pointer, 31 name js.Ref) 32 33 //go:wasmimport plat/js/webext/mojoprivate try_RequireAsync 34 //go:noescape 35 func TryRequireAsync( 36 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 37 name js.Ref) (ok js.Ref)