MCPcopy Create free account
hub / github.com/chanify/chanify / luaGetOptsArray

Function luaGetOptsArray

core/webhook.go:187–196  ·  view source on GitHub ↗
(opts *lua.LTable, key string)

Source from the content-addressed store, hash-verified

185}
186
187func luaGetOptsArray(opts *lua.LTable, key string) []string {
188 actions := []string{}
189 val := opts.RawGetString(key)
190 if v, ok := val.(*lua.LTable); ok {
191 v.ForEach(func(idx, value lua.LValue) {
192 actions = append(actions, value.String())
193 })
194 }
195 return actions
196}
197
198func luaContextGetToken(l *lua.LState) int {
199 ctx := luaCheckContext(l)

Callers 2

TestLuaGetOptsArrayFunction · 0.85
luaContextSendFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by 1

TestLuaGetOptsArrayFunction · 0.68