mirror of https://github.com/Hilbis/Hilbish
docs: add paths field to module interface docs
parent
3f29dfecb2
commit
3774a77870
|
@ -24,6 +24,9 @@ https://pkg.go.dev/github.com/arnodel/golua@master/runtime#Runtime
|
||||||
Hilbish uses this package as its Lua runtime. You will need to read
|
Hilbish uses this package as its Lua runtime. You will need to read
|
||||||
it to use it for a native plugin.
|
it to use it for a native plugin.
|
||||||
|
|
||||||
|
## Interface fields
|
||||||
|
- `paths`: A list of paths to search when loading native modules.
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
### load(path)
|
### load(path)
|
||||||
Loads a module at the designated `path`.
|
Loads a module at the designated `path`.
|
||||||
|
|
|
@ -10,6 +10,7 @@ import (
|
||||||
|
|
||||||
// #interface module
|
// #interface module
|
||||||
// native module loading
|
// native module loading
|
||||||
|
// #field paths A list of paths to search when loading native modules.
|
||||||
/* The hilbish.module interface provides a function
|
/* The hilbish.module interface provides a function
|
||||||
to load Hilbish plugins/modules.
|
to load Hilbish plugins/modules.
|
||||||
Hilbish modules are Go-written plugins (see https://pkg.go.dev/plugin)
|
Hilbish modules are Go-written plugins (see https://pkg.go.dev/plugin)
|
||||||
|
|
Loading…
Reference in New Issue