Documentation
¶
Overview ¶
Code generated by gobindlua; DO NOT EDIT.
Example ¶
package main
import (
"log"
lua "github.com/yuin/gopher-lua"
)
const script = `
local functions = require "functions"
functions.print_me(functions.split("foo_bar", "_"), functions.split("eggs&ham", "&"))
print("NotIncluded was excluded from the bindings: " .. tostring(functions.not_included == nil))
`
func main() {
L := lua.NewState()
defer L.Close()
// For pure functions, we use the PreloadModule function instead of gobindlua.Register.
L.PreloadModule("functions", FunctionsModuleLoader)
if err := L.DoString(script); err != nil {
log.Fatal(err)
}
}
Output: [foo bar] [eggs ham] NotIncluded was excluded from the bindings: true
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FunctionsModuleLoader ¶ added in v0.0.9
func NotIncluded ¶
func NotIncluded()
Since the -i option was specified, this function was not included.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.