util

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2019 License: Zlib Imports: 11 Imported by: 0

Documentation

Overview

Utility for Lua

Index

Constants

View Source
const (
	// Version number
	Version = lmodbase.Version
)

Variables

View Source
var Root string

The root path for the executable.

Functions

func AddPath

func AddPath(path string)

AddPath adds the searchpath for "require".

func Benchmark

func Benchmark(root string) error

Benchmark runs the specified benchmark script file.

func NewState

func NewState() *lua.State

NewState creates a new State, opens the buildin modules, and disables undefined variables.

func Open

func Open(l *lua.State)

Open opens the buildin modules.

func Run

func Run(l *lua.State, src string) error

Run runs the specified Lua src file.

func Strict

func Strict(l *lua.State)

Strict disables undeclared variables.

func Test

func Test(l *lua.State, root string) error

Test runs the specified test script file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL