Module returns the name in the module this import type is importing
()
| 70 | |
| 71 | // Module returns the name in the module this import type is importing |
| 72 | func (ty *ImportType) Module() string { |
| 73 | ptr := C.wasm_importtype_module(ty.ptr()) |
| 74 | ret := C.GoStringN(ptr.data, C.int(ptr.size)) |
| 75 | runtime.KeepAlive(ty) |
| 76 | return ret |
| 77 | } |
| 78 | |
| 79 | // Name returns the name in the module this import type is importing. |
| 80 | // |