Imports returns a list of `ImportType` which are the items imported by this module and are required for instantiation
()
| 49 | // Imports returns a list of `ImportType` which are the items imported by |
| 50 | // this module and are required for instantiation |
| 51 | func (m *Module) Imports() []*ImportType { |
| 52 | imports := &importTypeList{} |
| 53 | C.wasmtime_module_imports(m.ptr(), &imports.vec) |
| 54 | runtime.KeepAlive(m) |
| 55 | return imports.mkGoList() |
| 56 | } |
| 57 | |
| 58 | // Exports returns a list of `ExportType` which are the items that will be |
| 59 | // exported by this module after instantiation. |