Ask a question: How to introduce all the files in the lua directory (kafka/*) into the environment? I only know the following method
kafka/*
package.path = package.path..';lua/?.lua'
小伙看你根骨奇佳,潜力无限,来学PHP伐。
Found a solution on github.
init.lua
package.path = package.path.. ';lua/?.lua' .. ';lua/resty/kafka/?.lua';
Found a solution on github.
init.lua