Commit Graph

8 Commits

Author SHA1 Message Date
Eric Coissac da0c8b6f28 ♻️ refactor lua_push_interface and add json module
Refactor pushInterfaceToLua to delegate unsupported types (nil, bool/int/float/string/map/slice) recursively via new lvalueFromInterface helper. Simplify typed slice and map handlers, remove explicit nil case (now handled by lvalueFromInterface), eliminate redundant type switches in pushMapStringIntToLua and similar functions. Add new luajson.go with RegisterJSON, lua.JSONEncode/Decode bindings using lvalueFromInterface and Table2 Interface for bidirectional round-trips. Include comprehensive tests covering scalars, nested structures (e.g., kmindex response), arrays and error cases.
2026-04-13 17:56:58 +02:00
Eric Coissac 39dd3e3ce8 Add management of []interface{} to the LUA API. 2024-12-04 10:58:17 +01:00
Eric Coissac 65ae82622e correction of several small bugs 2024-09-03 06:08:07 -03:00
Eric Coissac df74b2b2bd Add a basic managment of obisequenceslice to obiscript
Former-commit-id: c3d2888ebbfb237826630548b839ce93cdbf86eb
2024-04-16 12:58:25 +02:00
Eric Coissac cb35612a6c new --version option and qualities method in obiscript
Former-commit-id: 7b0ce2901785d5c7494dec3a7a95d1fc5dc4a52b
2024-04-13 12:40:43 +02:00
coissac 6758ee6a8a Patch conversion from lua table to go slice or map
Former-commit-id: d94b879215374438a096e4b80a49b362266149ac
2024-03-12 17:18:29 +01:00
coissac 65933ca031 A working version of obiscript
Former-commit-id: 6652ac7dfe681e6c92a2946c34a8248bd62996b0
2024-03-08 21:39:05 +01:00
coissac b40015deb7 first preliminary version of obiscript.
Former-commit-id: 0d2c0fc5e33e0873ba5c04aca4cf7dd69aa83c90
2024-03-06 12:56:44 -03:00