script

package
v0.0.0-...-7638244 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

Loader represents a script loader

func NewLoader

func NewLoader(modules []lua.Module) *Loader

NewLoader creates a new loader that can be used to load scripts

func (*Loader) Load

func (l *Loader) Load(name string, uriOrCode string) (*lua.Script, error)

Load creates a new script from code or URL and starts a watching if needed

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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