diff --git a/docs/api/hilbish/hilbish.module.md b/docs/api/hilbish/hilbish.module.md index 77731a8..774456e 100644 --- a/docs/api/hilbish/hilbish.module.md +++ b/docs/api/hilbish/hilbish.module.md @@ -25,7 +25,7 @@ Hilbish uses this package as its Lua runtime. You will need to read it to use it for a native plugin. ## Interface fields -- `paths`: A list of paths to search when loading native modules. +- `paths`: A list of paths to search when loading native modules. This is in the style of Lua search paths and will be used when requiring native modules. Example: `?.so;?/?.so` ## Functions ### load(path) diff --git a/module.go b/module.go index bcb46a2..83b470f 100644 --- a/module.go +++ b/module.go @@ -10,7 +10,7 @@ import ( // #interface module // native module loading -// #field paths A list of paths to search when loading native modules. +// #field paths A list of paths to search when loading native modules. This is in the style of Lua search paths and will be used when requiring native modules. Example: `?.so;?/?.so` /* The hilbish.module interface provides a function to load Hilbish plugins/modules. Hilbish modules are Go-written plugins (see https://pkg.go.dev/plugin) diff --git a/testplugin/testplugin.so b/testplugin/testplugin.so new file mode 100644 index 0000000..3c83992 Binary files /dev/null and b/testplugin/testplugin.so differ