Exports returns a list of `ExportType` which are the items that will be exported by this module after instantiation.
()
| 58 | // Exports returns a list of `ExportType` which are the items that will be |
| 59 | // exported by this module after instantiation. |
| 60 | func (m *Module) Exports() []*ExportType { |
| 61 | exports := &exportTypeList{} |
| 62 | C.wasmtime_module_exports(m.ptr(), &exports.vec) |
| 63 | runtime.KeepAlive(m) |
| 64 | return exports.mkGoList() |
| 65 | } |
| 66 | |
| 67 | type importTypeList struct { |
| 68 | vec C.wasm_importtype_vec_t |