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'
小伙看你根骨奇佳,潛力無限,來學(xué)PHP伐。
Found a solution on github.
init.lua
package.path = package.path.. ';lua/?.lua'
.. ';lua/resty/kafka/?.lua';