From 99461e42d0d2e4cc24d784c4e0dddf84be72aa98 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Fri, 4 Mar 2022 14:40:54 -0400 Subject: [PATCH] fix: export hilbish.goro (closes #98) --- api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.go b/api.go index 20aa591..87234a9 100644 --- a/api.go +++ b/api.go @@ -25,6 +25,7 @@ var exports = map[string]lua.LGFunction { "appendPath": hlappendPath, "cwd": hlcwd, "exec": hlexec, + "goro": hlgoro, "multiprompt": hlmlprompt, "prependPath": hlprependPath, "prompt": hlprompt, @@ -265,7 +266,7 @@ func hlexec(L *lua.LState) int { // goro(fn) // Puts `fn` in a goroutine // --- @param fn function -func hlgoroutine(L *lua.LState) int { +func hlgoro(L *lua.LState) int { fn := L.CheckFunction(1) argnum := L.GetTop() args := make([]lua.LValue, argnum)