github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/i18n/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/i18n store_DetectLanguageReturnTypeFieldLanguagesElem 20 //go:noescape 21 func DetectLanguageReturnTypeFieldLanguagesElemJSStore( 22 ptr unsafe.Pointer, ref js.Ref) 23 24 //go:wasmimport plat/js/webext/i18n load_DetectLanguageReturnTypeFieldLanguagesElem 25 //go:noescape 26 func DetectLanguageReturnTypeFieldLanguagesElemJSLoad( 27 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 28 29 //go:wasmimport plat/js/webext/i18n store_DetectLanguageReturnType 30 //go:noescape 31 func DetectLanguageReturnTypeJSStore( 32 ptr unsafe.Pointer, ref js.Ref) 33 34 //go:wasmimport plat/js/webext/i18n load_DetectLanguageReturnType 35 //go:noescape 36 func DetectLanguageReturnTypeJSLoad( 37 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 38 39 //go:wasmimport plat/js/webext/i18n store_GetMessageArgOptions 40 //go:noescape 41 func GetMessageArgOptionsJSStore( 42 ptr unsafe.Pointer, ref js.Ref) 43 44 //go:wasmimport plat/js/webext/i18n load_GetMessageArgOptions 45 //go:noescape 46 func GetMessageArgOptionsJSLoad( 47 ptr unsafe.Pointer, create, ref js.Ref) js.Ref 48 49 //go:wasmimport plat/js/webext/i18n has_DetectLanguage 50 //go:noescape 51 func HasFuncDetectLanguage() js.Ref 52 53 //go:wasmimport plat/js/webext/i18n func_DetectLanguage 54 //go:noescape 55 func FuncDetectLanguage(fn unsafe.Pointer) 56 57 //go:wasmimport plat/js/webext/i18n call_DetectLanguage 58 //go:noescape 59 func CallDetectLanguage( 60 retPtr unsafe.Pointer, 61 text js.Ref) 62 63 //go:wasmimport plat/js/webext/i18n try_DetectLanguage 64 //go:noescape 65 func TryDetectLanguage( 66 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 67 text js.Ref) (ok js.Ref) 68 69 //go:wasmimport plat/js/webext/i18n has_GetAcceptLanguages 70 //go:noescape 71 func HasFuncGetAcceptLanguages() js.Ref 72 73 //go:wasmimport plat/js/webext/i18n func_GetAcceptLanguages 74 //go:noescape 75 func FuncGetAcceptLanguages(fn unsafe.Pointer) 76 77 //go:wasmimport plat/js/webext/i18n call_GetAcceptLanguages 78 //go:noescape 79 func CallGetAcceptLanguages( 80 retPtr unsafe.Pointer) 81 82 //go:wasmimport plat/js/webext/i18n try_GetAcceptLanguages 83 //go:noescape 84 func TryGetAcceptLanguages( 85 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref) 86 87 //go:wasmimport plat/js/webext/i18n has_GetMessage 88 //go:noescape 89 func HasFuncGetMessage() js.Ref 90 91 //go:wasmimport plat/js/webext/i18n func_GetMessage 92 //go:noescape 93 func FuncGetMessage(fn unsafe.Pointer) 94 95 //go:wasmimport plat/js/webext/i18n call_GetMessage 96 //go:noescape 97 func CallGetMessage( 98 retPtr unsafe.Pointer, 99 messageName js.Ref, 100 substitutions js.Ref, 101 options unsafe.Pointer) 102 103 //go:wasmimport plat/js/webext/i18n try_GetMessage 104 //go:noescape 105 func TryGetMessage( 106 retPtr unsafe.Pointer, errPtr unsafe.Pointer, 107 messageName js.Ref, 108 substitutions js.Ref, 109 options unsafe.Pointer) (ok js.Ref) 110 111 //go:wasmimport plat/js/webext/i18n has_GetUILanguage 112 //go:noescape 113 func HasFuncGetUILanguage() js.Ref 114 115 //go:wasmimport plat/js/webext/i18n func_GetUILanguage 116 //go:noescape 117 func FuncGetUILanguage(fn unsafe.Pointer) 118 119 //go:wasmimport plat/js/webext/i18n call_GetUILanguage 120 //go:noescape 121 func CallGetUILanguage( 122 retPtr unsafe.Pointer) 123 124 //go:wasmimport plat/js/webext/i18n try_GetUILanguage 125 //go:noescape 126 func TryGetUILanguage( 127 retPtr unsafe.Pointer, errPtr unsafe.Pointer) (ok js.Ref)