Ask a question:
How to introduce all the files in the lua directory (kafka/*
) into the environment? I only know the following method
package.path = package.path..';lua/?.lua'
PHP中文网2017-05-16 17:10:17
Found a solution on github.
init.lua
package.path = package.path.. ';lua/?.lua'
.. ';lua/resty/kafka/?.lua';