util

package
v0.0.0-...-88f43f8 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 9 Imported by: 1

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 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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