(l *State)
| 69 | } |
| 70 | |
| 71 | func 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 | |
| 81 | func readable(filename string) bool { |
| 82 | f, err := os.Open(filename) |
no test coverage detected