Refactor.

This commit is contained in:
Nuno Cruces
2023-01-28 12:47:39 +00:00
parent f4125bcd93
commit 0ace464670
7 changed files with 90 additions and 72 deletions

3
api.go
View File

@@ -18,8 +18,7 @@ func newConn(module api.Module) *Conn {
destructor := memory{module}.readUint32(uint32(global.Get()))
return &Conn{
module: module,
memory: memory{module},
mem: memory{module},
api: sqliteAPI{
malloc: getFun("malloc"),
free: getFun("free"),