MCPcopy Index your code
hub / github.com/Shopify/go-lua / createSearchersTable

Function createSearchersTable

load.go:71–79  ·  view source on GitHub ↗
(l *State)

Source from the content-addressed store, hash-verified

69}
70
71func createSearchersTable(l *State) {
72 searchers := []Function{searcherPreload, searcherLua}
73 l.CreateTable(len(searchers), 0)
74 for i, s := range searchers {
75 l.PushValue(-2)
76 l.PushGoClosure(s, 1)
77 l.RawSetInt(-2, i+1)
78 }
79}
80
81func readable(filename string) bool {
82 f, err := os.Open(filename)

Callers 1

PackageOpenFunction · 0.85

Calls 4

CreateTableMethod · 0.80
PushValueMethod · 0.80
PushGoClosureMethod · 0.80
RawSetIntMethod · 0.80

Tested by

no test coverage detected