package
module
Version:
v0.0.0-...-a37fb1f
Opens a new window with list of versions in this module.
Published: Jul 5, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Go strings package for gopher-lua
hello.go:
package main
import (
"github.com/yuin/gopher-lua"
strings "github.com/chai2010/glua-strings"
)
func main() {
L := lua.NewState()
defer L.Close()
strings.Preload(L)
if err := L.DoString(code); err != nil {
panic(err)
}
}
hello.lua:
local strings = require("strings")
print(strings.ToUpper("abc"))
for i, s in ipairs(strings.Split("aa,b,,c", ",")) do
print(i, s)
end
Run example:
$ go run hello.go
License
The MIT License.
Documentation
¶
func Loader(L *lua.LState) int
func Preload(L *lua.LState)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.