LuaJIT-to-Go/example/utils.lua
2025-02-26 07:00:01 -06:00

19 lines
304 B
Lua

-- Optional utility module
local utils = {}
function utils.doSomething()
print("Utils module function called")
return true
end
function utils.calculate(a, b)
return {
sum = a + b,
difference = a - b,
product = a * b,
quotient = a / b
}
end
return utils