MCPcopy Index your code
hub / github.com/Shopify/goluago

github.com/Shopify/goluago @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
125 symbols 300 edges 24 files 7 documented · 6%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

GoDoc

Lua wrappers for the Go standard library

Wraps Go's standard libraries so they can be used with the go-lua Lua VM implementation.

Most of the packages under pkg expose a single function Open(l *lua.State) that makes the corresponding Go package available to Lua scripts. For example:

import "github.com/Shopify/goluago/pkg/strings"
...
strings.Open(l)
...

allows Lua scripts loaded by l to:

require("goluago/strings")
strings.trim("loll ")
strings.split("cat,dog,elephant,walrus", ",")
strings.replace("oink oink oink", "k", "ky", 2)

To make all supported APIs available to Lua:

import "github.com/Shopify/goluago"
...
goluago.Open(l)
...

The "github.com/Shopify/goluago/util" package provides helper functions to push Go values onto the Lua stack, pull tables of string->string or string->value from the Lua stack to Go, and support variadic arguments.

License

goluago is licensed under the MIT license.

Core symbols most depended-on inside this repo

PullTable
called by 7
util/deep_pull.go
DeepPush
called by 7
util/deep_push.go
MustPullVarargs
called by 6
util/varargs.go
getVarArgs
called by 4
pkg/fmt/fmt.go
forwardOnType
called by 4
util/deep_push.go
check
called by 3
pkg/encoding/json/json.go
PullVarargs
called by 3
util/varargs.go
encode
called by 2
pkg/crypto/hmac/hmac.go

Shape

Function 125

Languages

Go100%

Modules by API surface

util/deep_pull_test.go14 symbols
util/varargs_test.go13 symbols
pkg/time/time.go10 symbols
pkg/testing/testing.go10 symbols
pkg/net/url/url.go9 symbols
util/deep_pull.go8 symbols
pkg/regexp/regexp.go8 symbols
pkg/fmt/fmt.go6 symbols
tst/lua_test_runner.go5 symbols
pkg/encoding/base64/base64.go5 symbols
pkg/crypto/aes/aes.go5 symbols
util/deep_push.go4 symbols

For agents

$ claude mcp add goluago \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact